mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
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);
|
history->owner().requestNotifySettings(history->peer);
|
||||||
if (notifyBy) {
|
if (notifyBy) {
|
||||||
history->owner().requestNotifySettings(notifyBy);
|
history->owner().requestNotifySettings(notifyBy);
|
||||||
|
|
Loading…
Add table
Reference in a new issue