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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user