diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index fdb959ac6..d8f5ae79f 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1322,7 +1322,7 @@ void ParticipantsBoxController::rowClicked(not_null row) { const auto user = row->peer()->asUser(); if (_role == Role::Admins) { showAdmin(user); - } else if ((_role == Role::Restricted || _role == Role::Kicked) + } else if (_role == Role::Restricted && (_peer->isChat() || _peer->isMegagroup())) { showRestricted(user); } else {