2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Don't allow gifting premium if can't buy.

This commit is contained in:
John Preston
2024-01-02 00:12:51 +04:00
parent a4d7309209
commit 5e255e56eb
4 changed files with 9 additions and 3 deletions

View File

@@ -419,7 +419,7 @@ void SetupPremium(
controller->setPremiumRef("settings");
showOther(PremiumId());
});
{
if (controller->session().premiumCanBuy()) {
const auto button = AddButtonWithIcon(
container,
tr::lng_settings_gift_premium(),