Follow-up

This commit is contained in:
Alexander Zinchuk 2021-11-19 17:35:07 +03:00
parent 803baf141f
commit e9e1b6a442

View File

@ -247,7 +247,7 @@ function checkIfShouldNotify(chat: ApiChat) {
return false; return false;
} }
return document.hasFocus(); return !document.hasFocus();
} }
function getNotificationContent(chat: ApiChat, message: ApiMessage) { function getNotificationContent(chat: ApiChat, message: ApiMessage) {