Fixes clearing message counter on opening the chat.
This commit is contained in:
parent
407b082780
commit
d8dd564b06
|
@ -172,8 +172,11 @@ var Chat = {
|
||||||
};
|
};
|
||||||
usermsg.autosize({callback: onTextAreaResize});
|
usermsg.autosize({callback: onTextAreaResize});
|
||||||
|
|
||||||
$("#" + CHAT_CONTAINER_ID).bind("shown",
|
eventEmitter.on(UIEvents.SIDE_TOOLBAR_CONTAINER_TOGGLED,
|
||||||
function () {
|
function(containerId, isVisible) {
|
||||||
|
if (containerId !== CHAT_CONTAINER_ID || !isVisible)
|
||||||
|
return;
|
||||||
|
|
||||||
unreadMessages = 0;
|
unreadMessages = 0;
|
||||||
updateVisualNotification();
|
updateVisualNotification();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue