mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Remove bot verification from saved messages.
This commit is contained in:
parent
8df7a45e29
commit
057f906ca4
1 changed files with 6 additions and 3 deletions
|
@ -438,6 +438,9 @@ void PaintRow(
|
|||
|
||||
const auto promoted = (history && history->useTopPromotion())
|
||||
&& !context.search;
|
||||
const auto verifyInfo = (from && !from->isSelf())
|
||||
? from->botVerifyDetails()
|
||||
: nullptr;
|
||||
if (promoted) {
|
||||
const auto type = history->topPromotionType();
|
||||
const auto custom = type.isEmpty()
|
||||
|
@ -449,10 +452,10 @@ void PaintRow(
|
|||
? tr::lng_badge_psa_default(tr::now)
|
||||
: custom;
|
||||
PaintRowTopRight(p, text, rectForName, context);
|
||||
} else if (const auto info = from ? from->botVerifyDetails() : nullptr) {
|
||||
if (!rowBadge.ready(info)) {
|
||||
} else if (verifyInfo) {
|
||||
if (!rowBadge.ready(verifyInfo)) {
|
||||
rowBadge.set(
|
||||
info,
|
||||
verifyInfo,
|
||||
from->owner().customEmojiManager().factory(),
|
||||
customEmojiRepaint);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue