Add tooltip after converting to gigagroup.

This commit is contained in:
John Preston 2021-02-15 15:25:23 +04:00
parent 5b6503bfed
commit d5fe57100a
2 changed files with 3 additions and 1 deletions

View file

@ -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";

View file

@ -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();