From 7947af665c7396fb3f267018c5333d16bcbce53f Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 28 Jan 2021 22:19:58 +0400 Subject: [PATCH] Skip notifications from imported messages. --- Telegram/SourceFiles/window/notifications_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/window/notifications_manager.cpp b/Telegram/SourceFiles/window/notifications_manager.cpp index 6b6b68034..324aad458 100644 --- a/Telegram/SourceFiles/window/notifications_manager.cpp +++ b/Telegram/SourceFiles/window/notifications_manager.cpp @@ -106,6 +106,12 @@ System::SkipState System::skipNotification( } const auto scheduled = item->out() && item->isFromScheduled(); + if (const auto forwarded = item->Get()) { + if (forwarded->imported) { + return { SkipState::Skip }; + } + } + history->owner().requestNotifySettings(history->peer); if (notifyBy) { history->owner().requestNotifySettings(notifyBy);