chat updates
This commit is contained in:
parent
ad52027760
commit
bb09d6a9d1
2 changed files with 26 additions and 52 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue