From 4293a4857f5ea52aba64eae38137ee3d0f21b054 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 8 May 2019 12:25:16 +0300 Subject: [PATCH] Show user profile from channel Removed Users. Fixes #5974. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index b0667308f9..bde085fcdf 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1339,7 +1339,8 @@ 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 || _role == Role::Kicked) + && (_peer->isChat() || _peer->isMegagroup())) { showRestricted(user); } else { _navigation->showPeerInfo(user);