Remove 'Restrict user' button in gigagroups.
This commit is contained in:
parent
d93d47f2cf
commit
42d40a6f8f
|
@ -1500,7 +1500,7 @@ base::unique_qptr<Ui::PopupMenu> ParticipantsBoxController::rowContextMenu(
|
||||||
if (const auto chat = _peer->asChat()) {
|
if (const auto chat = _peer->asChat()) {
|
||||||
return chat->amCreator();
|
return chat->amCreator();
|
||||||
}
|
}
|
||||||
return _peer->isMegagroup();
|
return _peer->isMegagroup() && !_peer->isGigagroup();
|
||||||
}();
|
}();
|
||||||
if (canRestrictWithoutKick) {
|
if (canRestrictWithoutKick) {
|
||||||
result->addAction(
|
result->addAction(
|
||||||
|
|
Loading…
Reference in New Issue