diff --git a/src/stores/chats.js b/src/stores/chats.js index b0373b0e5..6fcfbcd1e 100644 --- a/src/stores/chats.js +++ b/src/stores/chats.js @@ -81,11 +81,11 @@ export const useChatsStore = defineStore('chats', { chat.lastMessage = updatedChat.lastMessage chat.unread = updatedChat.unread chat.updated_at = updatedChat.updated_at - if (!isNewMessage) return + if (isNewMessage) maybeShowChatNotification(chat) } else { this.data.set(updatedChat.id, updatedChat) + maybeShowChatNotification(updatedChat) } - maybeShowChatNotification(chat) }, deleteChat(id) { this.data.delete(id)