mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Add tooltip after converting to gigagroup.
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user