2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Always pass all users to add group member box.

This commit is contained in:
John Preston
2017-12-08 18:25:29 +04:00
parent 90f5f7dded
commit a403ad7d37
2 changed files with 13 additions and 13 deletions

View File

@@ -496,13 +496,8 @@ void ShowForwardMessagesBox(
}
void PeerMenuAddChannelMembers(not_null<ChannelData*> channel) {
if (channel->isMegagroup()) {
auto &participants = channel->mgInfo->lastParticipants;
AddParticipantsBoxController::Start(
channel,
{ participants.cbegin(), participants.cend() });
return;
} else if (channel->membersCount() >= Global::ChatSizeMax()) {
if (!channel->isMegagroup()
&& channel->membersCount() >= Global::ChatSizeMax()) {
Ui::show(
Box<MaxInviteBox>(channel),
LayerOption::KeepOther);