ios, android: don't promise a purchase that may not exist

This commit is contained in:
spaced4ndy
2026-10-01 14:24:59 +04:00
parent 7473e7a61c
commit bebb8ef094
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2240,7 +2240,7 @@ func redeemErrorText(_ error: Error, purchase: Bool) -> String {
: NSLocalizedString("This app version cannot redeem badge codes.", comment: "alert message")
case .badgeActive:
return purchase
? NSLocalizedString("This profile already has a badge. The purchase will be added when this badge ends.", comment: "alert message")
? NSLocalizedString("This profile already has a badge.", comment: "alert message")
: NSLocalizedString("This profile already has a badge. Redeem the code on another profile, or once this badge ends.", comment: "alert message")
case let .serviceError(code): if let text = badgeServiceErrorText(code) { return text }
case let .invalidResponse(message):
@@ -3213,7 +3213,7 @@
<string name="badges_error_service_not_configured">This app version cannot redeem badge codes.</string>
<string name="badges_error_service_not_configured_purchase">This app version cannot buy badges.</string>
<string name="badges_error_already_active">This profile already has a badge. Redeem the code on another profile, or once this badge ends.</string>
<string name="badges_error_already_active_purchase">This profile already has a badge. The purchase will be added when this badge ends.</string>
<string name="badges_error_already_active_purchase">This profile already has a badge.</string>
<string name="badges_error_code_invalid">This code was not recognized.</string>
<string name="badges_error_code_used">This code has already been used.</string>
<string name="badges_error_code_expired">This code has expired.</string>