2
0
Эх сурвалжийг харах

Fixes #3589 Hats namespace change

JC Brand 5 сар өмнө
parent
commit
c298d553cf

+ 1 - 1
CHANGES.md

@@ -36,7 +36,7 @@
 - #3478: MUC participant status indicator misplaced 
 - #3529: Unbookmarked channels no longer change their name when clicked with an unread indicator (or text icon)
 - #3579: Changing nickname in a groupchat once, forbids to change nickname in another groupchat afterwards
-
+- #3589: Hats namespace change
 
 ### Bugfixes
 - Fix: MUC occupant list does not sort itself on nicknames or roles changes

+ 1 - 1
src/headless/plugins/muc/plugin.js

@@ -66,7 +66,7 @@ Strophe.addNamespace('MUC_OWNER', Strophe.NS.MUC + '#owner');
 Strophe.addNamespace('MUC_REGISTER', 'jabber:iq:register');
 Strophe.addNamespace('MUC_ROOMCONF', Strophe.NS.MUC + '#roomconfig');
 Strophe.addNamespace('MUC_USER', Strophe.NS.MUC + '#user');
-Strophe.addNamespace('MUC_HATS', 'xmpp:prosody.im/protocol/hats:1');
+Strophe.addNamespace('MUC_HATS', 'urn:xmpp:hats:0');
 Strophe.addNamespace('CONFINFO', 'urn:ietf:params:xml:ns:conference-info');
 
 converse.plugins.add('converse-muc', {

+ 2 - 2
src/plugins/muc-views/tests/hats.js

@@ -28,7 +28,7 @@ describe("A XEP-0317 MUC Hat", function () {
                 <x xmlns="http://jabber.org/protocol/muc#user">
                     <item affiliation="member" role="participant"/>
                 </x>
-                <hats xmlns="xmpp:prosody.im/protocol/hats:1">
+                <hats xmlns="urn:xmpp:hats:0">
                     <hat title="Teacher&apos;s Assistant" id="${hat1_id}"/>
                     <hat title="Dark Mage" id="${hat2_id}"/>
                 </hats>
@@ -58,7 +58,7 @@ describe("A XEP-0317 MUC Hat", function () {
                 <x xmlns="http://jabber.org/protocol/muc#user">
                     <item affiliation="member" role="participant"/>
                 </x>
-                <hats xmlns="xmpp:prosody.im/protocol/hats:1">
+                <hats xmlns="urn:xmpp:hats:0">
                     <hat title="Teacher&apos;s Assistant" id="${hat1_id}"/>
                     <hat title="Dark Mage" id="${hat2_id}"/>
                     <hat title="Mad hatter" id="${hat3_id}"/>