Merge pull request #12324 from ramonlsouza/issue-12287
fix: chat popup alerts in open private chat
This commit is contained in:
commit
b68aa39b86
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user