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

Add FileSizeLimitBox and pass "ref" to premium payment.

This commit is contained in:
John Preston
2022-05-23 18:46:15 +04:00
parent 62f42eabb0
commit d1907083ed
20 changed files with 211 additions and 350 deletions

View File

@@ -251,7 +251,12 @@ void SetupSections(
std::move(label),
st::settingsButton,
std::move(descriptor)
)->addClickHandler([=] { showOther(type); });
)->addClickHandler([=] {
if (type == PremiumId()) {
controller->setPremiumRef("settings");
}
showOther(type);
});
};
if (controller->session().supportMode()) {
SetupSupport(controller, container);