lint
This commit is contained in:
parent
7feb071d0b
commit
5dc3a87a97
1 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,8 @@ export const useChatsStore = defineStore('chats', {
|
||||||
updateChat(updatedChat) {
|
updateChat(updatedChat) {
|
||||||
const chat = this.data.get(updatedChat.id)
|
const chat = this.data.get(updatedChat.id)
|
||||||
if (chat) {
|
if (chat) {
|
||||||
const isNewMessage = chat.lastMessage?.id !== updatedChat.lastMessage?.id
|
const isNewMessage =
|
||||||
|
chat.lastMessage?.id !== updatedChat.lastMessage?.id
|
||||||
chat.lastMessage = updatedChat.lastMessage
|
chat.lastMessage = updatedChat.lastMessage
|
||||||
chat.unread = updatedChat.unread
|
chat.unread = updatedChat.unread
|
||||||
chat.updated_at = updatedChat.updated_at
|
chat.updated_at = updatedChat.updated_at
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue