mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 23:53:58 +02:00
Fix add members button in channels.
This commit is contained in:
parent
58cf0fa2b1
commit
4c289fc8fb
1 changed files with 3 additions and 1 deletions
|
@ -342,7 +342,9 @@ bool ChannelData::hiddenPreHistory() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChannelData::canAddMembers() const {
|
bool ChannelData::canAddMembers() const {
|
||||||
return !amRestricted(ChatRestriction::f_invite_users);
|
return isMegagroup()
|
||||||
|
? !amRestricted(ChatRestriction::f_invite_users)
|
||||||
|
: ((adminRights() & AdminRight::f_invite_users) || amCreator());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChannelData::canSendPolls() const {
|
bool ChannelData::canSendPolls() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue