mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Pass already-members when adding members to channel.
This commit is contained in:
@@ -695,13 +695,7 @@ void SetupAddChannelMember(
|
||||
st::infoMembersAddMember);
|
||||
add->showOn(CanAddMemberValue(channel));
|
||||
add->addClickHandler([channel] {
|
||||
if (channel->membersCount() >= Global::ChatSizeMax()) {
|
||||
Ui::show(
|
||||
Box<MaxInviteBox>(channel),
|
||||
LayerOption::KeepOther);
|
||||
} else {
|
||||
AddParticipantsBoxController::Start(channel, {});
|
||||
}
|
||||
Window::PeerMenuAddChannelMembers(channel);
|
||||
});
|
||||
parent->widthValue()
|
||||
| rpl::start_with_next([add](int newWidth) {
|
||||
|
Reference in New Issue
Block a user