Advertise support for spoilers
This commit is contained in:
parent
d4ceb6d340
commit
1759cc1672
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user