From 894d6028bd8c0b05c7b6998b83332757f486dbd7 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 14 Jan 2021 13:05:11 +0400 Subject: [PATCH] Don't skip native notification toasts --- .../platform/linux/notifications_manager_linux.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 57775dba2..4a572d841 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -667,6 +667,13 @@ bool SkipAudio() { } bool SkipToast() { + // Do not skip native notifications because of Do not disturb. + // They respect this setting anyway. + if ((Core::App().settings().nativeNotifications() && Supported()) + || Enforced()) { + return false; + } + return Inhibited(); }