diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 8a3f24305..a2b3736dd 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -2025,6 +2025,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_gigagroup_convert_sure" = "Convert"; "lng_gigagroup_warning_title" = "Are you sure?"; "lng_gigagroup_warning" = "Regular members of the group (non-admins) will **irrevocably** lose their right to post messages in the group.\n\nThis action **can't** be undone."; +"lng_gigagroup_done" = "Your group can now have more than 200,000 members."; "lng_rights_channel_info" = "Change channel info"; "lng_rights_channel_post" = "Post messages"; diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp index 76bb802dc..dd83992d3 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_permissions_box.cpp @@ -35,7 +35,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL namespace { constexpr auto kSlowmodeValues = 7; -constexpr auto kSuggestGigagroupThreshold = 1; AssertIsDebug(199000); +constexpr auto kSuggestGigagroupThreshold = 199000; int SlowmodeDelayByIndex(int index) { Expects(index >= 0 && index < kSlowmodeValues); @@ -553,6 +553,7 @@ void EditPeerPermissionsBox::addSuggestGigagroup( )).done([=](const MTPUpdates &result) { channel->session().api().applyUpdates(result); Ui::hideSettingsAndLayer(); + Ui::Toast::Show(tr::lng_gigagroup_done(tr::now)); }).fail([=](const RPCError &error) { *converting = false; }).send();