From 1488e02ac56389f122cc419c1c5735b6be3df289 Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Mon, 29 Mar 2021 01:32:09 +0300 Subject: [PATCH] Fix blocked users window not closing on profile open --- Telegram/SourceFiles/info/profile/info_profile_actions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index e515299bb..2e8e4c0e7 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -891,7 +891,7 @@ void ManageFiller::addPeerPermissions( _wrap, tr::lng_manage_peer_permissions(), rpl::single(true), - [=] { ShowEditPermissions(controller, peer); } + [=] { ShowEditPermissions(controller->parentController(), peer); } ); object_ptr( button, @@ -916,7 +916,7 @@ void ManageFiller::addPeerAdmins( tr::lng_manage_peer_administrators(), rpl::single(true), [=] { ParticipantsBoxController::Start( - controller, + controller->parentController(), peer, ParticipantsBoxController::Role::Admins);} ); @@ -936,7 +936,7 @@ void ManageFiller::addChannelBlockedUsers( tr::lng_manage_peer_removed_users(), rpl::single(true), [=] { ParticipantsBoxController::Start( - controller, + controller->parentController(), channel, ParticipantsBoxController::Role::Kicked);} );