mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-06 05:37:47 +00:00
ios, android: show a pending badge purchase only on the profile that made it, and keep the buyer's alert
This commit is contained in:
@@ -138,7 +138,7 @@ private val badgePurchasesUpdatedListener = PurchasesUpdatedListener { result, p
|
||||
}
|
||||
|
||||
private fun badgePurchaseOutcome(purchase: Purchase): BadgePurchaseOutcome? = when (purchase.purchaseState) {
|
||||
Purchase.PurchaseState.PENDING -> BadgePurchaseOutcome.Pending
|
||||
Purchase.PurchaseState.PENDING -> BadgePurchaseOutcome.Pending(purchase.accountIdentifiers?.obfuscatedAccountId)
|
||||
Purchase.PurchaseState.PURCHASED -> BadgePurchaseOutcome.Purchased(
|
||||
BadgeStoreReceipt(
|
||||
token = purchase.purchaseToken,
|
||||
|
||||
Reference in New Issue
Block a user