mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
Sort Subject Setting
This commit is contained in:
parent
2ffa7fc522
commit
d1ed7652fd
58
xep-0369.xml
58
xep-0369.xml
@ -290,7 +290,7 @@
|
||||
<p>Private Messages are not stored in the messages node.</p>
|
||||
</section3>
|
||||
<section3 topic="Subject Node" anchor="subject-node">
|
||||
<p>The subject node publishes the current subject of channel. Subject history is stored in MAM. A single item is stored in this node at a time which MUST contain a "text" element and MAY contain additional text elements. Where multiple text elements are provided, each MUST posses an xml:lang attribute that describes the natural language of the subject. Users subscribe to this node to receive subject updates. The following example shows the format of a item in the subject node.</p>
|
||||
<p>The subject node publishes the current subject of channel. Subject history is stored in MAM. A single item is stored in this node at a time which MUST contain a "text" element and MAY contain additional text elements. Where multiple text elements are provided, each MUST posses an xml:lang attribute that describes the natural language of the subject. The following example shows the format of a item in the subject node.</p>
|
||||
<example caption="Subject Node">
|
||||
<![CDATA[<items node='urn:xmpp:mix:nodes:subject'>
|
||||
<item>
|
||||
@ -298,10 +298,13 @@
|
||||
<text xml:lang="de">Wie benutzt man Kröten</text>
|
||||
</item>
|
||||
</items>]]></example>
|
||||
<p>
|
||||
When a user subscribes to the Subject Node, this will cause the channel to send Subject messages to the user through the MIX Proxy. This is done on initial user subscription and on subject change. Clients MAY directly read the channel subject from the Subject Node using PubSub.
|
||||
</p>
|
||||
</section3>
|
||||
<section3 topic="Participants Node" anchor="participants-node">
|
||||
<p>Each channel participant is represented as an item of the 'urn:xmpp:mix:nodes:participants' channel node. Each item is named by the bare proxy JID of the participant. For example 'coven+123456@mix.shakespeare.example' might name the node item associated with participant 'hag66@shakespeare.example'. The nick associated with the user is mandatory and is stored in the item. The nick for each channel participant MUST be different to the nick of other participants.
|
||||
This node may be subscribed to for jid-visible channels that permit subscription to this node - this will allow users to see changes to channel membership.
|
||||
This node MAY be subscribed to for jid-visible channels that permit subscription to this node - this will allow users to see changes to channel membership.
|
||||
</p>
|
||||
<p>If the Participants Node is not used, information on channel participants is not shared.</p>
|
||||
<example caption="Value of Participants Node"><![CDATA[
|
||||
@ -557,10 +560,16 @@
|
||||
</iq>
|
||||
]]></example>
|
||||
</section2>
|
||||
<section2 topic='Discovering Participants in a Channel' anchor='disco-channel-participants'>
|
||||
|
||||
<section2 topic="Determining Information about a Channel" anchor="find-channel-info">
|
||||
<p>The Information Node contains various information about the channel that may be useful to the user. This can be read by the user.</p>
|
||||
<p>AUTHOR'S NOTE: Define new protocol. Add example</p>
|
||||
</section2>
|
||||
<section2 topic='Determining the Participants in a Channel' anchor='find-channel-participants'>
|
||||
<p>
|
||||
|
||||
Online clients in the channel are determined from the presence node. Participants in the channel are determined from the "urn:xmpp:mix:nodes:participants" node which will give proxy JID and nick. The jidmap node is used to map to real JIDs. </p>
|
||||
<p>AUTHOR'S NOTE: Add example</p>
|
||||
<p>AUTHOR'S NOTE: Define new protocol. Add example</p>
|
||||
</section2>
|
||||
|
||||
|
||||
@ -920,7 +929,7 @@
|
||||
<body>Harpier cries: 'tis time, 'tis time.</body>
|
||||
</message>
|
||||
]]></example>
|
||||
<p>The message comes from the channel as a standard groupchat message, compatible with MUC. Messages are sent directly and do not use the MIX Proxy.</p>
|
||||
<p>The message comes from the channel as a standard groupchat message, compatible with MUC. Messages are sent directly to the channel and do not use the MIX Proxy. Messages reflected back by the channel are addressed to the user's MIX Proxy, coming from the Full Proxy JID of the message sender.</p>
|
||||
<p>AUTHOR NOTE AND QUESTION: Message id coming back is different in example. This is because the reflected message uses MAM ID, which seems helpful. However, it makes it harder for sender to correlate reflections. Need to be explicit as to compliant behaviour. Input as to whether the ID should change is solicited. A more complex option would be to include both IDs in some way.</p>
|
||||
<example caption="Channel Reflects Message to Participants"><![CDATA[
|
||||
<message from='coven+12345@mix.shakespeare.example/678'
|
||||
@ -940,6 +949,45 @@
|
||||
AUTHOR'S NOTE: Define new protocol to support this and add example.
|
||||
</p>
|
||||
</section3>
|
||||
|
||||
|
||||
<section3 topic="Setting the Channel Subject" anchor="set-subject">
|
||||
<p>
|
||||
Setting the subject for a channel follows a similar procedure to sending a message. An XMPP client will send a message setting the subject directly to the MIX channel.
|
||||
</p>
|
||||
<example caption="User Sets Channel Subject"><![CDATA[
|
||||
<message from='hag66@shakespeare.example/pda'
|
||||
to='coven@mix.shakespeare.example'
|
||||
id='92vax143g'
|
||||
type='groupchat'>
|
||||
<subject>
|
||||
<item>
|
||||
<text xml:lang="en">How to use Toads</text>
|
||||
<text xml:lang="de">Wie benutzt man Kröten</text>
|
||||
</item>
|
||||
</subject>
|
||||
</message>
|
||||
]]></example>
|
||||
<p>
|
||||
This message is received by the MIX channel, which will set the Subject Node for the channel, and then distribute the message to participants that are subscribed to the Subject Node, with the message addressed to the MIX Proxy.
|
||||
</p>
|
||||
<example caption="Channel Reflects New Subject to Participants"><![CDATA[
|
||||
<message from='coven+12345@mix.shakespeare.example/678'
|
||||
to='hecate@shakespeare.example'
|
||||
id='77E07BB0-55CF-4BD4-890E-3F7C0E686BBD'
|
||||
type='groupchat'>
|
||||
<subject>
|
||||
<item>
|
||||
<text xml:lang="en">How to use Toads</text>
|
||||
<text xml:lang="de">Wie benutzt man Kröten</text>
|
||||
</item>
|
||||
</subject>
|
||||
</message>
|
||||
]]></example>
|
||||
<p>
|
||||
When a new Participant joins a channel and subscribes to the Subject Node, the channel MUST send to the user's MIX Proxy a message with the current subject. An XMPP Client MAY directly read the Subject node using &xep0060;.
|
||||
</p>
|
||||
</section3>
|
||||
<section3 topic='Inviting another user to join a Channel' anchor='usecase-user-invite'>
|
||||
<p>When a channel member invites another user to join a channel, a sequence of steps are followed.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user