summaryrefslogtreecommitdiff
path: root/xmpp/iq.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-05 22:01:14 +0200
committerxengineering <me@xengineering.eu>2023-07-05 22:02:02 +0200
commit57845892dbfc6db0648b18e418a6b15218d8526c (patch)
treee5b1df2ebc99b64ed3672a6dd410d6fbc281b338 /xmpp/iq.go
parent13eeca2177dc767aa7d01c9caed95ae2be736471 (diff)
downloadlimox-57845892dbfc6db0648b18e418a6b15218d8526c.tar
limox-57845892dbfc6db0648b18e418a6b15218d8526c.tar.zst
limox-57845892dbfc6db0648b18e418a6b15218d8526c.zip
Migrate bind receive to new iq struct
Diffstat (limited to 'xmpp/iq.go')
-rw-r--r--xmpp/iq.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/xmpp/iq.go b/xmpp/iq.go
index 4c91b58..cd96384 100644
--- a/xmpp/iq.go
+++ b/xmpp/iq.go
@@ -47,13 +47,9 @@ func (s *session) sendBind() {
}
}
-type iqResponse struct {
- Jid string `xml:"urn:ietf:params:xml:ns:xmpp-bind bind>jid"`
-}
-
-func handleIqResponse(s *session, i iqResponse) {
- if i.Jid != "" {
- s.jid = i.Jid
+func handleIq(s *session, i iq) {
+ if i.Bind.Jid != "" {
+ s.jid = i.Bind.Jid
s.sendPresence()
return
}