forked from jshiffer/go-xmpp
An IQ can only have a single payload
"An IQ stanza of type "get" or "set" MUST contain exactly one child element, which specifies the semantics of the particular request."
This commit is contained in:
committed by
Mickaël Rémond
parent
d455f29258
commit
af0ae525b8
@@ -165,7 +165,7 @@ func (s *Session) bind(o Config) {
|
||||
}
|
||||
|
||||
// TODO Check all elements
|
||||
switch payload := iq.Payload[0].(type) {
|
||||
switch payload := iq.Payload.(type) {
|
||||
case *BindBind:
|
||||
s.BindJid = payload.Jid // our local id (with possibly randomly generated resource
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user