Explorar o código

Save hat URI, not id

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
ca7adeedbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/utils/stanza.js

+ 1 - 1
src/headless/utils/stanza.js

@@ -727,7 +727,7 @@ const st = {
             } else if (child.matches('hats') && child.getAttribute('xmlns') === Strophe.NS.MUC_HATS) {
                 data['hats'] = Array.from(child.children).map(c => c.matches('hat') && {
                     'title': c.getAttribute('title'),
-                    'id': c.getAttribute('id')
+                    'uri': c.getAttribute('uri')
                 });
             }
         });