mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Don't allow kicking yourself from legacy group.
This commit is contained in:
parent
a6eb241ec1
commit
818624e051
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue