Advertise support for spoilers

This commit is contained in:
JC Brand 2018-02-07 17:25:16 +01:00
parent d4ceb6d340
commit 1759cc1672

View File

@ -62,7 +62,7 @@
* *
* NB: These plugins need to have already been loaded via require.js. * NB: These plugins need to have already been loaded via require.js.
*/ */
dependencies: ["converse-chatboxes"], dependencies: ["converse-chatboxes", "converse-disco"],
overrides: { overrides: {
// Overrides mentioned here will be picked up by converse.js's // 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);
});
} }
}); });