From 713eb828c8374707c4aadb40d4f07e4f9949db95 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 26 Aug 2026 18:38:33 +0300 Subject: [PATCH] fix chats fetcher again --- src/stores/chats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)