mirror of
https://github.com/vale981/tdesktop
synced 2025-03-06 10:11:41 -05:00
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:
parent
5ca3a81fe2
commit
58dcba71a4
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||||
*/
|
*/
|
||||||
#include "profile/profile_block_channel_members.h"
|
#include "profile/profile_block_channel_members.h"
|
||||||
|
|
||||||
|
#include "profile/profile_channel_controllers.h"
|
||||||
#include "styles/style_profile.h"
|
#include "styles/style_profile.h"
|
||||||
#include "ui/widgets/buttons.h"
|
#include "ui/widgets/buttons.h"
|
||||||
#include "boxes/members_box.h"
|
#include "boxes/members_box.h"
|
||||||
|
@ -149,7 +150,7 @@ void ChannelMembersWidget::onMembers() {
|
||||||
|
|
||||||
void ChannelMembersWidget::onAdmins() {
|
void ChannelMembersWidget::onAdmins() {
|
||||||
if (auto channel = peer()->asChannel()) {
|
if (auto channel = peer()->asChannel()) {
|
||||||
Ui::show(Box<MembersBox>(channel, MembersFilter::Admins));
|
ParticipantsBoxController::Start(channel, ParticipantsBoxController::Role::Admins);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue