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
This commit is contained in:
John Preston 2017-07-03 16:17:52 +03:00
parent 5ca3a81fe2
commit 58dcba71a4

View file

@ -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<MembersBox>(channel, MembersFilter::Admins));
ParticipantsBoxController::Start(channel, ParticipantsBoxController::Role::Admins);
}
}