mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-03 21:16:35 +00:00
Fix single premium gifting from settings
This commit is contained in:
parent
857f508dea
commit
7e8f2fe9e7
@ -879,7 +879,7 @@ private final class PremiumGiftScreenComponent: CombinedComponent {
|
||||
|
||||
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