Fixes clearing message counter on opening the chat.

This commit is contained in:
damencho 2016-09-14 15:22:36 -05:00
parent 407b082780
commit d8dd564b06
1 changed files with 5 additions and 2 deletions

View File

@ -172,8 +172,11 @@ var Chat = {
};
usermsg.autosize({callback: onTextAreaResize});
$("#" + CHAT_CONTAINER_ID).bind("shown",
function () {
eventEmitter.on(UIEvents.SIDE_TOOLBAR_CONTAINER_TOGGLED,
function(containerId, isVisible) {
if (containerId !== CHAT_CONTAINER_ID || !isVisible)
return;
unreadMessages = 0;
updateVisualNotification();
});