mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Add tooltip after converting to gigagroup.
This commit is contained in:
parent
5b6503bfed
commit
d5fe57100a
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue