Do not display desktop chat notification when the chat is focused

このコミットが含まれているのは:
eugenijm 2020-07-13 15:48:19 +03:00
コミット 54dea24bb8
1個のファイルの変更1行の追加0行の削除

ファイルの表示

@ -2,6 +2,7 @@ import { showDesktopNotification } from '../desktop_notification_utils/desktop_n
export const maybeShowChatNotification = (store, chat) => {
if (!chat.lastMessage) return
if (store.rootState.chats.currentChatId === chat.id && !document.hidden) return
const opts = {
tag: chat.lastMessage.id,