forked from jshiffer/go-xmpp
parent
912ba61489
commit
e773596ea0
8
xmpp.go
8
xmpp.go
@ -721,6 +721,14 @@ func (c *Client) Recv() (stanza interface{}, err error) {
|
|||||||
return PubsubSubscription{
|
return PubsubSubscription{
|
||||||
Errors: errsStr,
|
Errors: errsStr,
|
||||||
}, nil
|
}, nil
|
||||||
|
default:
|
||||||
|
res, err := xml.Marshal(v.Query)
|
||||||
|
if err != nil {
|
||||||
|
return Chat{}, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return IQ{ID: v.ID, From: v.From, To: v.To, Type: v.Type,
|
||||||
|
Query: res}, nil
|
||||||
}
|
}
|
||||||
case v.Type == "result" && v.ID == "unsub1":
|
case v.Type == "result" && v.ID == "unsub1":
|
||||||
// Unsubscribing MAY contain a pubsub element. But it does
|
// Unsubscribing MAY contain a pubsub element. But it does
|
||||||
|
Loading…
Reference in New Issue
Block a user