Explorar el Código

Save hat URI, not id

JC Brand hace 5 años
padre
commit
ca7adeedbd
Se han modificado 1 ficheros con 1 adiciones y 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')
                 });
             }
         });