Commit 1759cc16 authored by JC Brand's avatar JC Brand

Advertise support for spoilers

parent d4ceb6d3
......@@ -62,7 +62,7 @@
*
* NB: These plugins need to have already been loaded via require.js.
*/
dependencies: ["converse-chatboxes"],
dependencies: ["converse-chatboxes", "converse-disco"],
overrides: {
// Overrides mentioned here will be picked up by converse.js's
......@@ -1203,6 +1203,12 @@
}
}
});
_converse.on('connected', () => {
// Advertise that we support XEP-0382 Message Spoilers
_converse.connection.disco.addFeature(Strophe.NS.SPOILER);
});
}
});
......
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