2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -1247,22 +1247,15 @@ void PeerData::setStoriesHidden(bool hidden) {
}
}
Ui::VerifyDetails *PeerData::verifyDetails() const {
Ui::BotVerifyDetails *PeerData::botVerifyDetails() const {
if (const auto user = asUser()) {
return user->verifyDetails();
return user->botVerifyDetails();
} else if (const auto channel = asChannel()) {
return channel->verifyDetails();
return channel->botVerifyDetails();
}
return nullptr;
}
bool PeerData::verifiedByTelegram() const {
if (const auto details = verifyDetails()) {
return (details->iconBgId == owner().verifiedByTelegram().iconBgId);
}
return false;
}
Data::Forum *PeerData::forum() const {
if (const auto channel = asChannel()) {
return channel->forum();