2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support "premiums and ..." privacy editing.

This commit is contained in:
John Preston
2024-04-01 17:03:04 +04:00
parent 1e6fb202f0
commit 5741bd9cca
14 changed files with 328 additions and 55 deletions

View File

@@ -440,10 +440,7 @@ void SetupPremium(
button->addClickHandler([=] {
showOther(BusinessId());
});
constexpr auto kNewExpiresAt = int(1711958400);
if (base::unixtime::now() < kNewExpiresAt) {
Ui::NewBadge::AddToRight(button);
}
Ui::NewBadge::AddToRight(button);
if (controller->session().premiumCanBuy()) {
const auto button = AddButtonWithIcon(