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) {