mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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())
|
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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue