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});
|
||||
|
||||
$("#" + 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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue