From 3e899107499efdffca869abaf0612b24460485f5 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 17 Nov 2024 10:46:12 +0300 Subject: [PATCH] Replaced user info with short box for admins in section of kicked users. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index d1b6d7a2d..bdd3bdc24 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -1700,8 +1700,10 @@ base::unique_qptr<Ui::PopupMenu> ParticipantsBoxController::rowContextMenu( : participant->isBroadcast() ? tr::lng_context_view_channel : tr::lng_context_view_group)(tr::now), - crl::guard(this, [=] { - _navigation->showPeerInfo(participant); }), + crl::guard(this, [=, this] { + _navigation->parentController()->show( + PrepareShortInfoBox(participant, _navigation)); + }), (participant->isUser() ? &st::menuIconProfile : &st::menuIconInfo));