2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Adapt UI for gigagroups.

This commit is contained in:
John Preston
2021-02-12 19:07:41 +04:00
parent 56b15b26bb
commit 8188ab3033
7 changed files with 52 additions and 21 deletions

View File

@@ -757,11 +757,15 @@ bool PeerData::isFake() const {
}
bool PeerData::isMegagroup() const {
return isChannel() ? asChannel()->isMegagroup() : false;
return isChannel() && asChannel()->isMegagroup();
}
bool PeerData::isBroadcast() const {
return isChannel() ? asChannel()->isBroadcast() : false;
return isChannel() && asChannel()->isBroadcast();
}
bool PeerData::isGigagroup() const {
return isChannel() && asChannel()->isGigagroup();
}
bool PeerData::isRepliesChat() const {