chat updates

This commit is contained in:
Henry Jameson 2026-08-26 15:02:11 +03:00
commit bb09d6a9d1
2 changed files with 26 additions and 52 deletions

View file

@ -4,6 +4,7 @@ import { useUsersStore } from 'src/stores/users.js'
export const maybeShowChatNotification = (chat) => {
if (!chat.lastMessage) return
if (chat.unread === 0) return
if (useUsersStore().currentUser.id === chat.lastMessage.account_id) return
const opts = {