Remove 'Restrict user' button in gigagroups.

This commit is contained in:
John Preston 2021-04-19 11:21:56 +04:00
parent d93d47f2cf
commit 42d40a6f8f
1 changed files with 1 additions and 1 deletions

View File

@ -1500,7 +1500,7 @@ base::unique_qptr<Ui::PopupMenu> ParticipantsBoxController::rowContextMenu(
if (const auto chat = _peer->asChat()) {
return chat->amCreator();
}
return _peer->isMegagroup();
return _peer->isMegagroup() && !_peer->isGigagroup();
}();
if (canRestrictWithoutKick) {
result->addAction(