summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-06 21:45:31 +0200
committerxengineering <me@xengineering.eu>2023-07-06 21:45:31 +0200
commit16d5f079cc51bffe9f07b356f3a42d5a09a45317 (patch)
treeb370e7c5b220351b9c42f8f19fa30672d8310724 /xmpp/routing.go
parentd614346ae08e5384e1dca7306ba64fbdc9931d2e (diff)
parent007f413e457ff0b733447acba61b11d6813dd41c (diff)
downloadlimox-16d5f079cc51bffe9f07b356f3a42d5a09a45317.tar
limox-16d5f079cc51bffe9f07b356f3a42d5a09a45317.tar.zst
limox-16d5f079cc51bffe9f07b356f3a42d5a09a45317.zip
Merge branch 'roster-backend'
Getting the roster (contact list) is crucial to provide a MVP LimoX since the chats should be grouped by contacts. For the MVP it is only relevant to get the roster on connect. Everything else can be done later.
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index 2f2347a..4058dfb 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -12,7 +12,7 @@ func route(s *xml.StartElement, d *xml.Decoder, c chan<- any) {
case xml.Name{`urn:ietf:params:xml:ns:xmpp-sasl`, `success`}:
parse(saslSuccess{}, s, d, c)
case xml.Name{`jabber:client`, `iq`}:
- parse(iqResponse{}, s, d, c)
+ parse(iqRx{}, s, d, c)
case xml.Name{`jabber:client`, `message`}:
parse(message{}, s, d, c)
default:
@@ -35,8 +35,8 @@ func handle(s *session, element any) {
handleStreamFeatures(s, t)
case saslSuccess:
handleSaslSuccess(s)
- case iqResponse:
- handleIqResponse(s, t)
+ case iqRx:
+ t.handle(s)
case message:
handleMessage(s, t)
default: