forgejo is poop

This commit is contained in:
Henry Jameson 2026-08-28 23:23:47 +03:00
commit 7feb071d0b

View file

@ -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