Browse Source

Merge commit 'refs/pull/600/head' of https://github.com/xsf/xeps

Jonas Wielicki 1 year ago
parent
commit
d4b5dc8bf8
1 changed files with 19 additions and 4 deletions
  1. 19
    4
      xep-0045.xml

+ 19
- 4
xep-0045.xml View File

@@ -45,6 +45,14 @@
45 45
   </schemaloc>
46 46
   <registry/>
47 47
   &stpeter;
48
+  <revision>
49
+    <version>1.31</version>
50
+    <date>2018-03-06</date>
51
+    <initials>gl</initials>
52
+    <remark>
53
+      <p>Require the service to maintain the 'id' attribute on message reflections.</p>
54
+    </remark>
55
+  </revision>
48 56
   <revision>
49 57
     <version>1.30</version>
50 58
     <date>2018-02-23</date>
@@ -1172,6 +1180,7 @@
1172 1180
         name='A Dark Cave'
1173 1181
         type='text'/>
1174 1182
     <feature var='http://jabber.org/protocol/muc'/>
1183
+    <feature var='http://jabber.org/protocol/muc#stable_id'/>
1175 1184
     <feature var='muc_passwordprotected'/>
1176 1185
     <feature var='muc_hidden'/>
1177 1186
     <feature var='muc_temporary'/>
@@ -1902,27 +1911,28 @@
1902 1911
     <example caption='Service Reflects Message to All Occupants'><![CDATA[
1903 1912
 <message
1904 1913
     from='coven@chat.shakespeare.lit/thirdwitch'
1905
-    id='E36F45B8-DE06-4534-94AD-C5ED29415FCE'
1914
+    id='hysf1v37'
1906 1915
     to='crone1@shakespeare.lit/desktop'
1907 1916
     type='groupchat'>
1908 1917
   <body>Harpier cries: 'tis time, 'tis time.</body>
1909 1918
 </message>
1910 1919
 <message
1911 1920
     from='coven@chat.shakespeare.lit/thirdwitch'
1912
-    id='AFCA9201-2BA0-4A20-98D4-B9CB85F9B982'
1921
+    id='hysf1v37'
1913 1922
     to='wiccarocks@shakespeare.lit/laptop'
1914 1923
     type='groupchat'>
1915 1924
   <body>Harpier cries: 'tis time, 'tis time.</body>
1916 1925
 </message>
1917 1926
 <message
1918 1927
     from='coven@chat.shakespeare.lit/thirdwitch'
1919
-    id='FB7092DB-A70B-4ACA-8FAC-5E3F89F03F64'
1928
+    id='hysf1v37'
1920 1929
     to='hag66@shakespeare.lit/pda'
1921 1930
     type='groupchat'>
1922 1931
   <body>Harpier cries: 'tis time, 'tis time.</body>
1923 1932
 </message>
1924 1933
 ]]></example>
1925
-    <p>Note well that for tracking purposes this service assigns a new 'id' to each message it generates (here using a UUID as defined in &rfc4122;).</p>
1934
+    <p>The service SHOULD reflect the message with the same 'id' that was generated by the client, to allow clients to track their outbound messages. If the client did not provide an 'id', the server MAY generate an 'id' and use it for all reflections of the same message (e.g. using a UUID as defined in &rfc4122;).</p>
1935
+    <p><strong>Note:</strong> the requirement to reflect the 'id' attribute was added in version 1.31 of this XEP. Servers following the new specification SHOULD advertise that with a disco info feature of 'http://jabber.org/protocol/muc#stable_id' on both the service domain and on individual MUCs, so that clients can check for support.</p>
1926 1936
     <p>If the sender is a visitor (i.e., does not have voice in a moderated room), the service MUST return a &forbidden; error to the sender and MUST NOT reflect the message to all occupants. If the sender is not an occupant of the room, the service SHOULD return a &notacceptable; error to the sender and SHOULD NOT reflect the message to all occupants; the only exception to this rule is that an implementation MAY allow users with certain privileges (e.g., a room owner, room admin, or service-level admin) to send messages to the room even if those users are not occupants.</p>
1927 1937
   </section2>
1928 1938
 
@@ -5006,6 +5016,11 @@
5006 5016
   <desc>Support for the muc#roominfo FORM_TYPE</desc>
5007 5017
   <doc>XEP-0045</doc>
5008 5018
 </var>
5019
+<var>
5020
+  <name>http://jabber.org/protocol/muc#stable_id</name>
5021
+  <desc>This MUC will reflect the original message 'id' in 'groupchat' messages.</desc>
5022
+  <doc>XEP-0045</doc>
5023
+</var>
5009 5024
 <var>
5010 5025
   <name>muc_hidden</name>
5011 5026
   <desc>Hidden room in Multi-User Chat (MUC)</desc>

Loading…
Cancel
Save