Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes clearing message counter on opening the chat.

damenchod8dd564b06a9
diff --git a/modules/UI/side_pannels/chat/Chat.js b/modules/UI/side_pannels/chat/Chat.js
index f5d2ba011d..8e62c851f5 100644
--- a/modules/UI/side_pannels/chat/Chat.js
+++ b/modules/UI/side_pannels/chat/Chat.js
@@ -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();
});