mirror of https://github.com/procxx/kepka.git
Add users to a channel check by admin rights.
Also add an admin right checkbox for add users in channels.
This commit is contained in:
parent
5b4f70ff96
commit
6487d91722
|
@ -212,6 +212,7 @@ void EditAdminBox::prepare() {
|
|||
addCheckbox(Flag::f_post_messages, lang(lng_rights_channel_post));
|
||||
addCheckbox(Flag::f_edit_messages, lang(lng_rights_channel_edit));
|
||||
addCheckbox(Flag::f_delete_messages, lang(lng_rights_channel_delete));
|
||||
addCheckbox(Flag::f_invite_users | Flag::f_invite_link, lang(lng_rights_group_invite));
|
||||
addCheckbox(Flag::f_add_admins, lang(lng_rights_add_admins));
|
||||
}
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ void MembersBox::refreshButtons() {
|
|||
if (_channel->canAddAdmins()) {
|
||||
addLeftButton(langFactory(lng_channel_add_admin), [this] { onAdd(); });
|
||||
}
|
||||
} else if (_channel->amCreator() && (_channel->membersCount() < (_channel->isMegagroup() ? Global::MegagroupSizeMax() : Global::ChatSizeMax()) || (!_channel->isMegagroup() && !_channel->isPublic()))) {
|
||||
} else if (_channel->canAddMembers() && (_channel->membersCount() < (_channel->isMegagroup() ? Global::MegagroupSizeMax() : Global::ChatSizeMax()) || (!_channel->isMegagroup() && !_channel->isPublic()))) {
|
||||
addLeftButton(langFactory(lng_channel_add_members), [this] { onAdd(); });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue