Renamed creditsAmount in invoice for premium gift with represented name.

This commit is contained in:
23rd
2025-03-03 21:23:32 +03:00
committed by John Preston
parent 9491cff1df
commit 0d8ae7bb37
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -529,7 +529,7 @@ rpl::producer<rpl::no_value, QString> PremiumGiftCodeOptions::applyPrepaid(
_api.request(MTPpayments_LaunchPrepaidGiveaway(
_peer->input,
MTP_long(prepaidId),
invoice.creditsAmount
invoice.giveawayCredits
? Payments::InvoiceCreditsGiveawayToTL(invoice)
: Payments::InvoicePremiumGiftCodeGiveawayToTL(invoice)
)).done([=](const MTPUpdates &result) {