Skip to content
Snippets Groups Projects
Commit 27469345 authored by Ramon Souza's avatar Ramon Souza
Browse files

fix chat popup alerts in private chat

parent 76e6f482
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