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