mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Update API scheme to layer 148, start forums.
This commit is contained in:
@@ -844,15 +844,31 @@ bool PeerData::isFake() const {
|
||||
}
|
||||
|
||||
bool PeerData::isMegagroup() const {
|
||||
return isChannel() && asChannel()->isMegagroup();
|
||||
if (const auto channel = asChannel()) {
|
||||
return channel->isMegagroup();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isBroadcast() const {
|
||||
return isChannel() && asChannel()->isBroadcast();
|
||||
if (const auto channel = asChannel()) {
|
||||
return channel->isBroadcast();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isForum() const {
|
||||
if (const auto channel = asChannel()) {
|
||||
return channel->isForum();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isGigagroup() const {
|
||||
return isChannel() && asChannel()->isGigagroup();
|
||||
if (const auto channel = asChannel()) {
|
||||
return channel->isGigagroup();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::isRepliesChat() const {
|
||||
|
||||
Reference in New Issue
Block a user