muc: render tab upon chatroom add

So that it shows unread messages upon page reload.
This commit is contained in:
JC Brand 2017-06-15 12:32:33 +02:00
parent cc0f613118
commit e29c2f8197

View File

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