Commit c494f426 authored by JC Brand's avatar JC Brand

Use constant

parent d2b0fa78
......@@ -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');
......
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