Commit 8de78dfa authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot Committed by JC Brand

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
parent 7c20e16e
...@@ -297,6 +297,7 @@ ...@@ -297,6 +297,7 @@
if (from !== null) { if (from !== null) {
iqresult.attrs({'to': from}); iqresult.attrs({'to': from});
} }
iqresult.c('query', attrs);
_.each(plugin._identities, (identity) => { _.each(plugin._identities, (identity) => {
const attrs = { const attrs = {
'category': identity.category, 'category': identity.category,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment