Skip notifications from imported messages.

This commit is contained in:
John Preston 2021-01-28 22:19:58 +04:00
parent 160cd975ce
commit 7947af665c
1 changed files with 6 additions and 0 deletions

View File

@ -106,6 +106,12 @@ System::SkipState System::skipNotification(
}
const auto scheduled = item->out() && item->isFromScheduled();
if (const auto forwarded = item->Get<HistoryMessageForwarded>()) {
if (forwarded->imported) {
return { SkipState::Skip };
}
}
history->owner().requestNotifySettings(history->peer);
if (notifyBy) {
history->owner().requestNotifySettings(notifyBy);