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 = {};