mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
[[nodiscard]] bool ShowSendActionInDialogs(Data::Thread *thread) {
|
||||||
const auto history = thread ? thread->owningHistory().get() : nullptr;
|
const auto history = thread ? thread->owningHistory().get() : nullptr;
|
||||||
return history
|
if (!history) {
|
||||||
&& (!history->peer->isUser()
|
return false;
|
||||||
|| history->peer->asUser()->onlineTill > 0);
|
} else if (const auto user = history->peer->asUser()) {
|
||||||
|
return (user->onlineTill > 0);
|
||||||
|
}
|
||||||
|
return !history->peer->isForum();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaintRowTopRight(
|
void PaintRowTopRight(
|
||||||
|
|
Loading…
Add table
Reference in a new issue