mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Hide "Remove" context action for participants-groups.
This commit is contained in:
parent
a1957fe5c0
commit
f1f7330bf6
1 changed files with 2 additions and 1 deletions
|
@ -1278,7 +1278,8 @@ base::unique_qptr<Ui::PopupMenu> Members::Controller::createRowContextMenu(
|
|||
&& chat->canBanMembers()
|
||||
&& !chat->admins.contains(user));
|
||||
} else if (const auto channel = _peer->asChannel()) {
|
||||
return channel->canRestrictParticipant(participantPeer);
|
||||
return !participantPeer->isMegagroup() // That's the creator.
|
||||
&& channel->canRestrictParticipant(participantPeer);
|
||||
}
|
||||
return false;
|
||||
}();
|
||||
|
|
Loading…
Add table
Reference in a new issue