From e29c2f81973dc07e7606672251e204689ea6562d Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 15 Jun 2017 12:32:33 +0200 Subject: [PATCH] muc: render tab upon chatroom add So that it shows unread messages upon page reload. --- src/converse-muc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/converse-muc.js b/src/converse-muc.js index 7ec5391da..074bb164e 100755 --- a/src/converse-muc.js +++ b/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 () {