From 192a56ee15f8168bc60fca9f89f4b50930b4c92c Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 12 Aug 2025 20:19:24 +0000 Subject: [PATCH] Shorter notifications proxy check for Linux notifications --- .../platform/linux/notifications_manager_linux.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index f73fceab05..6c2f4a73f2 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -263,15 +263,7 @@ void Create(Window::Notifications::System *system) { res, nullptr); - if (!proxy) { - ServiceRegistered = false; - CurrentServerInformation = {}; - CurrentCapabilities = {}; - managerSetter(nullptr); - return; - } - - ServiceRegistered = bool(proxy.get_name_owner()); + ServiceRegistered = proxy ? bool(proxy.get_name_owner()) : false; if (!ServiceRegistered) { CurrentServerInformation = {}; CurrentCapabilities = {};