From f7144a55e2297768910366105cab56b2fad34a9e Mon Sep 17 00:00:00 2001 From: John Preston Date: Sun, 23 Feb 2020 12:48:39 +0400 Subject: [PATCH] Always clear history notifications when marking as read. --- Telegram/SourceFiles/data/data_histories.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/data/data_histories.cpp b/Telegram/SourceFiles/data/data_histories.cpp index 8eb8284f50..b9bcb750d0 100644 --- a/Telegram/SourceFiles/data/data_histories.cpp +++ b/Telegram/SourceFiles/data/data_histories.cpp @@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_channel.h" #include "data/data_folder.h" #include "main/main_session.h" +#include "window/notifications_manager.h" #include "history/history.h" #include "history/history_item.h" #include "history/view/history_view_element.h" @@ -134,6 +135,8 @@ void Histories::readInboxTill( bool force) { Expects(IsServerMsgId(tillId) || (!tillId && !force)); + history->session().notifications().clearIncomingFromHistory(history); + const auto needsRequest = history->readInboxTillNeedsRequest(tillId); if (!needsRequest && !force) { return;