From b1e64419a5a0e52c8beb23e7a5685f7589394dc9 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 25 Apr 2024 11:21:58 +0400 Subject: [PATCH] Fix setting application icon in Linux notifications --- .../platform/linux/notifications_manager_linux.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 21f09c116..6bde1d993 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -436,9 +436,9 @@ void NotificationData::show() { const auto weak = base::make_weak(this); StartServiceAsync(_proxy.get_connection(), crl::guard(weak, [=] { const auto iconName = _imageKey.empty() - || _hints.lookup_value(_imageKey) - ? std::string() - : base::IconName().toStdString(); + || !_hints.lookup_value(_imageKey) + ? base::IconName().toStdString() + : std::string(); auto actions = _actions | ranges::views::transform(&std::string::c_str)