From 58dcba71a4d9a56b51777f4e555f6081d8461d8a Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 3 Jul 2017 16:17:52 +0300 Subject: [PATCH] Switch to PeerListBox in channel admin management. This will fix the problem with adding admins to channels. Also this will add local search to channel admins list. Fixes #3615 --- Telegram/SourceFiles/profile/profile_block_channel_members.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/profile/profile_block_channel_members.cpp b/Telegram/SourceFiles/profile/profile_block_channel_members.cpp index c57a277bd..313914520 100644 --- a/Telegram/SourceFiles/profile/profile_block_channel_members.cpp +++ b/Telegram/SourceFiles/profile/profile_block_channel_members.cpp @@ -20,6 +20,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org */ #include "profile/profile_block_channel_members.h" +#include "profile/profile_channel_controllers.h" #include "styles/style_profile.h" #include "ui/widgets/buttons.h" #include "boxes/members_box.h" @@ -149,7 +150,7 @@ void ChannelMembersWidget::onMembers() { void ChannelMembersWidget::onAdmins() { if (auto channel = peer()->asChannel()) { - Ui::show(Box(channel, MembersFilter::Admins)); + ParticipantsBoxController::Start(channel, ParticipantsBoxController::Role::Admins); } }