소스 검색

muc: render tab upon chatroom add

So that it shows unread messages upon page reload.
JC Brand 8 년 전
부모
커밋
e29c2f8197
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/converse-muc.js

+ 1 - 0
src/converse-muc.js

@@ -2388,6 +2388,7 @@
                     this.model.on('change:muc_domain', this.onDomainChange, this);
                     this.model.on('change:nick', this.onNickChange, this);
                     _converse.chatboxes.on('change:num_unread', this.renderTab, this);
+                    _converse.chatboxes.on('add', _.debounce(this.renderTab, 100), this);
                 },
 
                 render: function () {