mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Skip forum send action painting.
This commit is contained in:
parent
a2b0c551c2
commit
8ee28f6665
1 changed files with 6 additions and 3 deletions
|
@ -51,9 +51,12 @@ const auto kPsaBadgePrefix = "cloud_lng_badge_psa_";
|
|||
|
||||
[[nodiscard]] bool ShowSendActionInDialogs(Data::Thread *thread) {
|
||||
const auto history = thread ? thread->owningHistory().get() : nullptr;
|
||||
return history
|
||||
&& (!history->peer->isUser()
|
||||
|| history->peer->asUser()->onlineTill > 0);
|
||||
if (!history) {
|
||||
return false;
|
||||
} else if (const auto user = history->peer->asUser()) {
|
||||
return (user->onlineTill > 0);
|
||||
}
|
||||
return !history->peer->isForum();
|
||||
}
|
||||
|
||||
void PaintRowTopRight(
|
||||
|
|
Loading…
Add table
Reference in a new issue