mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 04:02:20 -05:00
XEP-0369: Allow unsubscribing from nodes.
The <update-subscription/> element so far was only allowing a user to subscribe to new nodes, not unsubscribe from them. The only option if for instance one node was too floody was to leave the channel and rejoin it with only the nodes we wanted.
This commit is contained in:
parent
85ccb1e796
commit
bb05bddeab
@ -1080,7 +1080,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
A user MAY subsequently modify subscription to nodes in a channel by sending a subscription modification request encoded as a <update-subscription/> child element of <iq/> element. The <update-subscription/> element is qualified by the 'urn:xmpp:mix:core:1' namespace. The requested nodes are encoded as <subscribe/> child elements of the <update-subscription/> element with the node name encoded as a 'node' attribute. This modification goes directly from client to the MIX channel, as this change does not impact the roster and so does not need any local action. The following example shows subscription modification.
|
A user MAY subsequently modify subscription to nodes in a channel by sending a subscription modification request encoded as a <update-subscription/> child element of <iq/> element. The <update-subscription/> element is qualified by the 'urn:xmpp:mix:core:1' namespace. The requested nodes are encoded as <subscribe/> and <unsubscribe/> child elements of the <update-subscription/> element with the node name encoded as a 'node' attribute. This modification goes directly from client to the MIX channel, as this change does not impact the roster and so does not need any local action. The following example shows subscription modification.
|
||||||
</p>
|
</p>
|
||||||
<example caption="User Modifies Subscription Request"><![CDATA[
|
<example caption="User Modifies Subscription Request"><![CDATA[
|
||||||
<iq type='set'
|
<iq type='set'
|
||||||
@ -1089,6 +1089,7 @@
|
|||||||
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
|
id='E6E10350-76CF-40C6-B91B-1EA08C332FC7'>
|
||||||
<update-subscription xmlns='urn:xmpp:mix:core:1'>
|
<update-subscription xmlns='urn:xmpp:mix:core:1'>
|
||||||
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
||||||
|
<unsubscribe node='urn:xmpp:mix:nodes:presence'/>
|
||||||
</update-subscription>
|
</update-subscription>
|
||||||
</iq>
|
</iq>
|
||||||
|
|
||||||
@ -1099,6 +1100,7 @@
|
|||||||
<update-subscription xmlns='urn:xmpp:mix:core:1'
|
<update-subscription xmlns='urn:xmpp:mix:core:1'
|
||||||
jid='hag66@shakespeare.example'>
|
jid='hag66@shakespeare.example'>
|
||||||
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
<subscribe node='urn:xmpp:mix:nodes:messages'/>
|
||||||
|
<unsubscribe node='urn:xmpp:mix:nodes:presence'/>
|
||||||
</update-subscription>
|
</update-subscription>
|
||||||
</iq>
|
</iq>
|
||||||
]]></example>
|
]]></example>
|
||||||
|
Loading…
Reference in New Issue
Block a user