fix chats

This commit is contained in:
Henry Jameson 2026-08-25 21:09:05 +03:00
commit f030328cd1
2 changed files with 15 additions and 6 deletions

View file

@ -101,7 +101,7 @@ export const useChatsStore = defineStore('chats', {
chat.unread = 0
}
},
updateChat({ chat: updatedChat }) {
updateChat({ data: { chatUpdate: updatedChat } }) {
const chat = getChatById(this, updatedChat.id)
if (chat) {
chat.lastMessage = updatedChat.lastMessage