From 274693456a6b5f4cee767df919aef0c3eab5e0ce Mon Sep 17 00:00:00 2001 From: Ramon Souza <contato@ramonsouza.com> Date: Fri, 7 May 2021 17:33:22 -0300 Subject: [PATCH] fix chat popup alerts in private chat --- .../imports/ui/components/chat/alert/component.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/chat/alert/component.jsx b/bigbluebutton-html5/imports/ui/components/chat/alert/component.jsx index 554c9bfb04..95b7854264 100755 --- a/bigbluebutton-html5/imports/ui/components/chat/alert/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/alert/component.jsx @@ -82,10 +82,10 @@ class ChatAlert extends PureComponent { const unalertedMessagesByChatId = {}; activeChats - .filter(chat => chat.userId !== idChatOpen) + .filter(chat => chat.chatId !== idChatOpen) .filter(chat => chat.unreadCounter > 0) .forEach((chat) => { - const chatId = (chat.userId === 'public') ? publicChatId : chat.chatId; + const chatId = (chat.chatId === 'public') ? publicChatId : chat.chatId; const thisChatUnreadMessages = UnreadMessages.getUnreadMessages(chatId, messages); unalertedMessagesByChatId[chatId] = thisChatUnreadMessages.filter((msg) => { -- GitLab