From 4ac48d0e4a0272ec65a91791800059b0c03458a2 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 6 Mar 2025 00:33:25 +0000 Subject: [PATCH] Fix clearFromTopic on Linux Looks like it was broken since addition --- .../SourceFiles/platform/linux/notifications_manager_linux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index b1fb8327e..6881694d9 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -811,7 +811,8 @@ void Manager::Private::clearFromItem(not_null item) { void Manager::Private::clearFromTopic(not_null topic) { const auto key = ContextId{ .sessionId = topic->session().uniqueId(), - .peerId = topic->history()->peer->id + .peerId = topic->history()->peer->id, + .topicRootId = topic->rootId(), }; const auto i = _notifications.find(key); if (i != _notifications.cend()) {