From 42d40a6f8f900aae3ccc9f1b977fdf85d38a15eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 19 Apr 2021 11:21:56 +0400 Subject: [PATCH] Remove 'Restrict user' button in gigagroups. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index 76c6af11e8..35fff48957 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1500,7 +1500,7 @@ base::unique_qptr ParticipantsBoxController::rowContextMenu( if (const auto chat = _peer->asChat()) { return chat->amCreator(); } - return _peer->isMegagroup(); + return _peer->isMegagroup() && !_peer->isGigagroup(); }(); if (canRestrictWithoutKick) { result->addAction(