fix chats
This commit is contained in:
parent
283b91826f
commit
f030328cd1
2 changed files with 15 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue