mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't use MTP for PeerData::isSelf.
This commit is contained in:
@@ -795,6 +795,13 @@ QString PeerData::userName() const {
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool PeerData::isSelf() const {
|
||||
if (const auto user = asUser()) {
|
||||
return (user->flags() & UserDataFlag::Self);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isVerified() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->isVerified();
|
||||
|
Reference in New Issue
Block a user