Browse Source

Fix disco#info result stanza

Converse forgot to add the wrapping query element, making the iq
invalid[1].

Thanks to lovetox for reporting this bug!

[1] https://pastebin.com/raw/T7h3FKHu
Emmanuel Gil Peyrot 7 năm trước cách đây
mục cha
commit
8de78dfaf5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/converse-disco.js

+ 1 - 0
src/converse-disco.js

@@ -297,6 +297,7 @@
                 if (from !== null) {
                     iqresult.attrs({'to': from});
                 }
+                iqresult.c('query', attrs);
                 _.each(plugin._identities, (identity) => {
                     const attrs = {
                         'category': identity.category,