2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Skip forum send action painting.

This commit is contained in:
John Preston
2022-11-08 14:30:42 +04:00
parent a2b0c551c2
commit 8ee28f6665

View File

@@ -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(