Remove bot verification from saved messages.

This commit is contained in:
John Preston 2025-01-28 10:06:37 +04:00
parent 8df7a45e29
commit 057f906ca4

View file

@ -438,6 +438,9 @@ void PaintRow(
const auto promoted = (history && history->useTopPromotion()) const auto promoted = (history && history->useTopPromotion())
&& !context.search; && !context.search;
const auto verifyInfo = (from && !from->isSelf())
? from->botVerifyDetails()
: nullptr;
if (promoted) { if (promoted) {
const auto type = history->topPromotionType(); const auto type = history->topPromotionType();
const auto custom = type.isEmpty() const auto custom = type.isEmpty()
@ -449,10 +452,10 @@ void PaintRow(
? tr::lng_badge_psa_default(tr::now) ? tr::lng_badge_psa_default(tr::now)
: custom; : custom;
PaintRowTopRight(p, text, rectForName, context); PaintRowTopRight(p, text, rectForName, context);
} else if (const auto info = from ? from->botVerifyDetails() : nullptr) { } else if (verifyInfo) {
if (!rowBadge.ready(info)) { if (!rowBadge.ready(verifyInfo)) {
rowBadge.set( rowBadge.set(
info, verifyInfo,
from->owner().customEmojiManager().factory(), from->owner().customEmojiManager().factory(),
customEmojiRepaint); customEmojiRepaint);
} }