diff --git a/src/util/notifications.ts b/src/util/notifications.ts index 7af5a7a6..cd7131ec 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) {