mod_pubsub: Include <pubsub> with unsubscribe reply

XEP-0060 6.2.2

This is a MAY but it makes it nice and symmetric with the subscription
response. Reduces the need to remember which node you unsubscribed from.

Explicit > implicit etc.
This commit is contained in:
Kim Alvefur 2021-03-15 19:04:08 +01:00
parent 6bae44fea8
commit 90e4a09661
2 changed files with 12 additions and 2 deletions

View file

@ -150,7 +150,11 @@ Juliet sends:
</iq>
Juliet receives:
<iq type="result" id='unsub1'/>
<iq type="result" id='unsub1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<subscription jid="${Juliet's full JID}" node='princely_musings' subscription='none'/>
</pubsub>
</iq>
Balthasar sends:
<iq type="set" to="pubsub.localhost" id='del1'>