Allow left creator to restrict/unrestrict channel members.
GitOrigin-RevId: 60c1e54b9c1b275f0038bb4ebc35c57662010711
This commit is contained in:
parent
8bbc32e21c
commit
b23ff9697b
@ -6387,7 +6387,7 @@ void ContactsManager::restrict_channel_participant(ChannelId channel_id, UserId
|
||||
if (c == nullptr) {
|
||||
return promise.set_error(Status::Error(3, "Chat info not found"));
|
||||
}
|
||||
if (!c->status.is_member()) {
|
||||
if (!c->status.is_member() && !c->status.is_creator()) {
|
||||
if (user_id == get_my_id()) {
|
||||
if (status.is_member()) {
|
||||
return promise.set_error(Status::Error(3, "Can't unrestrict self"));
|
||||
|
Reference in New Issue
Block a user