mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix single premium gifting from settings
This commit is contained in:
parent
857f508dea
commit
7e8f2fe9e7
@ -876,10 +876,10 @@ private final class PremiumGiftScreenComponent: CombinedComponent {
|
||||
self.inProgress = true
|
||||
self.updateInProgress(true)
|
||||
self.updated(transition: .immediate)
|
||||
|
||||
|
||||
let purpose: AppStoreTransactionPurpose
|
||||
var quantity: Int32 = 1
|
||||
if self.peerIds.count > 1 {
|
||||
if case .settings = self.source {
|
||||
purpose = .giftCode(peerIds: self.peerIds, boostPeer: nil, currency: currency, amount: amount)
|
||||
quantity = Int32(self.peerIds.count)
|
||||
} else if let peerId = self.peerIds.first {
|
||||
|
Loading…
x
Reference in New Issue
Block a user