mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Skip notifications from imported messages.
This commit is contained in:
parent
160cd975ce
commit
7947af665c
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue