fix chat notifications

This commit is contained in:
Henry Jameson 2026-08-25 21:30:21 +03:00
commit a659063fc2
2 changed files with 4 additions and 6 deletions

View file

@ -11,13 +11,14 @@ export const maybeShowChatNotification = (chat) => {
title: chat.account.name,
icon: chat.account.profile_image_url,
body: chat.lastMessage.content,
type: 'chatMention',
}
if (chat.lastMessage.attachment?.type === 'image') {
opts.image = chat.lastMessage.attachment.preview_url
}
showDesktopNotification(window.vuex.state, opts)
showDesktopNotification(opts)
}
export const buildFakeMessage = ({