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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user