2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Implement simple premium limits boxes.

This commit is contained in:
John Preston
2022-05-06 16:46:43 +04:00
parent ea3084aea5
commit 739123dedc
11 changed files with 716 additions and 71 deletions

View File

@@ -11,6 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/random.h"
#include "ui/boxes/confirm_box.h"
#include "boxes/peer_list_controllers.h"
#include "boxes/premium_limits_box.h"
#include "boxes/peers/add_participants_box.h"
#include "boxes/peers/edit_peer_common.h"
#include "boxes/peers/edit_participant_box.h"
@@ -782,7 +783,7 @@ void GroupInfoBox::createChannel(
Ui::LayerOption::CloseOther);
} else if (type == u"CHANNELS_TOO_MUCH"_q) {
controller->show(
Ui::MakeInformBox(tr::lng_cant_do_this()),
Box(ChannelsLimitBox, &controller->session()),
Ui::LayerOption::CloseOther); // TODO
}
}).send();