Fix add members button in channels.

This commit is contained in:
John Preston 2019-01-30 13:49:36 +03:00
parent 58cf0fa2b1
commit 4c289fc8fb

View File

@ -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 {