mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Hide reply in notification for paid peers.
This commit is contained in:
parent
7b0a156bba
commit
95ccc99fee
1 changed files with 8 additions and 1 deletions
|
@ -378,6 +378,12 @@ void System::schedule(Data::ItemNotification notification) {
|
||||||
registerThread(thread);
|
registerThread(thread);
|
||||||
_whenAlerts[thread].emplace(timing.when, notifyBy);
|
_whenAlerts[thread].emplace(timing.when, notifyBy);
|
||||||
}
|
}
|
||||||
|
if (const auto user = item->history()->peer->asUser()) {
|
||||||
|
if (user->hasStarsPerMessage()
|
||||||
|
&& !user->messageMoneyRestrictionsKnown()) {
|
||||||
|
user->updateFull();
|
||||||
|
}
|
||||||
|
}
|
||||||
if (Core::App().settings().desktopNotify()
|
if (Core::App().settings().desktopNotify()
|
||||||
&& !_manager->skipToast()) {
|
&& !_manager->skipToast()) {
|
||||||
registerThread(thread);
|
registerThread(thread);
|
||||||
|
@ -944,7 +950,8 @@ Manager::DisplayOptions Manager::getNotificationOptions(
|
||||||
|| (!Data::CanSendTexts(peer)
|
|| (!Data::CanSendTexts(peer)
|
||||||
&& (!topic || !Data::CanSendTexts(topic)))
|
&& (!topic || !Data::CanSendTexts(topic)))
|
||||||
|| peer->isBroadcast()
|
|| peer->isBroadcast()
|
||||||
|| (peer->slowmodeSecondsLeft() > 0);
|
|| (peer->slowmodeSecondsLeft() > 0)
|
||||||
|
|| (peer->starsPerMessageChecked() > 0);
|
||||||
result.spoilerLoginCode = item
|
result.spoilerLoginCode = item
|
||||||
&& !item->out()
|
&& !item->out()
|
||||||
&& peer->isNotificationsUser()
|
&& peer->isNotificationsUser()
|
||||||
|
|
Loading…
Add table
Reference in a new issue