浏览代码

Save hat URI, not id

JC Brand 5 年之前
父节点
当前提交
ca7adeedbd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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')
                 });
             }
         });