From e9e1b6a442397f123bcb58c73fc684d27ce0f879 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 19 Nov 2021 17:35:07 +0300 Subject: [PATCH] Follow-up --- src/util/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/notifications.ts b/src/util/notifications.ts index 7af5a7a68..cd7131ec6 100644 --- a/src/util/notifications.ts +++ b/src/util/notifications.ts @@ -247,7 +247,7 @@ function checkIfShouldNotify(chat: ApiChat) { return false; } - return document.hasFocus(); + return !document.hasFocus(); } function getNotificationContent(chat: ApiChat, message: ApiMessage) {