Don't allow kicking yourself from legacy group.

This commit is contained in:
John Preston 2020-12-30 16:14:13 +04:00
parent a6eb241ec1
commit 818624e051

View file

@ -358,7 +358,7 @@ bool ParticipantsAdditionalData::canRemoveUser(
if (canRestrictUser(user)) {
return true;
} else if (const auto chat = _peer->asChat()) {
return chat->invitedByMe.contains(user);
return !user->isSelf() && chat->invitedByMe.contains(user);
}
return false;
}