mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-24 23:42:58 +00:00
Fix add members button in channels.
This commit is contained in:
parent
58cf0fa2b1
commit
4c289fc8fb
@ -342,7 +342,9 @@ bool ChannelData::hiddenPreHistory() 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 {
|
||||
|
Loading…
Reference in New Issue
Block a user