2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added suggestion for annual premium to top bar in dialogs.

This commit is contained in:
23rd
2025-04-05 19:17:25 +03:00
committed by John Preston
parent 98d9357208
commit 640db8af7d
9 changed files with 118 additions and 20 deletions

View File

@@ -25,6 +25,7 @@ Data::PremiumSubscriptionOption CreateSubscriptionOption(
* kDiscountDivider;
}();
return {
.months = months,
.duration = Ui::FormatTTL(months * 86400 * 31),
.discount = (discount > 0)
? QString::fromUtf8("\xe2\x88\x92%1%").arg(discount)