diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index c98634227..1f4cfe06c 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -74,6 +74,9 @@ std::unique_ptr CreateServiceWatcher() { const Glib::ustring &oldOwner, const Glib::ustring &newOwner) { if (activatable && newOwner.empty()) { + crl::on_main([] { + Core::App().notifications().clearAll(); + }); return; } @@ -665,7 +668,9 @@ void NotificationData::close() { _notificationId, }), {}, - std::string(kService)); + std::string(kService), + -1, + Gio::DBus::CALL_FLAGS_NO_AUTO_START); _manager->clearNotification(_id); }