From 9b154b3c916ddd398e422823dee66396018333f2 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 13 Jan 2023 10:13:40 +0400 Subject: [PATCH] Ensure freedesktop capabilities aren't used when GNotification is used --- .../platform/linux/notifications_manager_linux.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 1bc1e3156..e378d7857 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -834,6 +834,11 @@ bool Enforced() { } bool ByDefault() { + // The capabilities are static, equivalent to 'body' and 'actions' only + if (UseGNotification()) { + return false; + } + // A list of capabilities that offer feature parity // with custom notifications static const auto NeededCapabilities = {