Skip to content
Snippets Groups Projects
Unverified Commit b68aa39b authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #12324 from ramonlsouza/issue-12287

fix: chat popup alerts in open private chat
parents 76e6f482 27469345
No related branches found
No related tags found
No related merge requests found
......@@ -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) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment