Use constant

This commit is contained in:
JC Brand 2018-11-09 11:56:07 +01:00
parent d2b0fa7853
commit c494f4267a

View File

@ -427,7 +427,7 @@ converse.plugins.add('converse-chatview', {
* messages, based on whether the contact's client supports
* it.
*/
if (!options.show_spoiler_button || this.model.get('type') === 'chatroom') {
if (!options.show_spoiler_button || this.model.get('type') === _converse.CHATROOMS_TYPE) {
return;
}
const contact_jid = this.model.get('jid');