소스 검색

Use constant

JC Brand 6 년 전
부모
커밋
c494f4267a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

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