mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add support for FAKE badge.
This commit is contained in:
@@ -747,6 +747,15 @@ bool PeerData::isScam() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isFake() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->isFake();
|
||||
} else if (const auto channel = asChannel()) {
|
||||
return channel->isFake();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isMegagroup() const {
|
||||
return isChannel() ? asChannel()->isMegagroup() : false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user