diff --git a/src/stores/chats.js b/src/stores/chats.js index f2b27306d..32296ff4f 100644 --- a/src/stores/chats.js +++ b/src/stores/chats.js @@ -77,7 +77,8 @@ export const useChatsStore = defineStore('chats', { updateChat(updatedChat) { const chat = this.data.get(updatedChat.id) if (chat) { - const isNewMessage = chat.lastMessage?.id !== updatedChat.lastMessage?.id + const isNewMessage = + chat.lastMessage?.id !== updatedChat.lastMessage?.id chat.lastMessage = updatedChat.lastMessage chat.unread = updatedChat.unread chat.updated_at = updatedChat.updated_at