mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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)) {
|
if (canRestrictUser(user)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (const auto chat = _peer->asChat()) {
|
} else if (const auto chat = _peer->asChat()) {
|
||||||
return chat->invitedByMe.contains(user);
|
return !user->isSelf() && chat->invitedByMe.contains(user);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue