2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Return native verify icon to the right.

This commit is contained in:
John Preston
2024-12-31 17:18:59 +04:00
parent c23b533704
commit a7321c9beb
33 changed files with 167 additions and 233 deletions

View File

@@ -1385,10 +1385,10 @@ void InnerWidget::paintPeerSearchResult(
Ui::NameTextOptions());
}
if (const auto details = peer->verifyDetails()) {
if (!result->badge.ready(details)) {
if (const auto info = peer->botVerifyDetails()) {
if (!result->badge.ready(info)) {
result->badge.set(
details,
info,
peer->owner().customEmojiManager().factory(),
[=] { updateSearchResult(peer); });
}
@@ -1409,6 +1409,11 @@ void InnerWidget::paintPeerSearchResult(
context.width,
{
.peer = peer,
.verified = (context.active
? &st::dialogsVerifiedIconActive
: context.selected
? &st::dialogsVerifiedIconOver
: &st::dialogsVerifiedIcon),
.premium = &ThreeStateIcon(
st::dialogsPremiumIcon,
context.active,