File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2618,6 +2618,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
26182618"lng_group_requests_none_channel" = "There are no pending join requests.";
26192619"lng_group_requests_dismiss_all_confirm" = "Are you sure you want to dismiss all pending join requests?";
26202620"lng_group_requests_ban_all_confirm" = "Are you sure you want to ban all users who requested to join?";
2621+ "lng_group_requests_ban_too_much_users" = "You cannot ban so many users at once. Try dismissing them instead.";
26212622
26222623"lng_channel_public_link_copied" = "Link copied to clipboard.";
26232624"lng_context_about_private_link" = "This link will only work for members of this chat.";
Original file line number Diff line number Diff line change @@ -484,6 +484,14 @@ void RequestsBoxController::banAllRequests() {
484484 return ;
485485 }
486486
487+ if (count >= 20 ) {
488+ delegate ()->peerListUiShow ()->showBox (Ui::MakeConfirmBox ({
489+ .text = tr::lng_group_requests_ban_too_much_users (tr::now),
490+ .inform = true
491+ }));
492+ return ;
493+ }
494+
487495 const auto guard = base::make_weak (this );
488496 delegate ()->peerListUiShow ()->showBox (Ui::MakeConfirmBox ({
489497 .text = tr::lng_group_requests_ban_all_confirm (tr::now),
You can’t perform that action at this time.
0 commit comments