diff options
Diffstat (limited to 'DomainDig/PurchaseService.swift')
| -rw-r--r-- | DomainDig/PurchaseService.swift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DomainDig/PurchaseService.swift b/DomainDig/PurchaseService.swift index af34a33..dbc31ba 100644 --- a/DomainDig/PurchaseService.swift +++ b/DomainDig/PurchaseService.swift @@ -196,6 +196,14 @@ final class PurchaseService { errorMessage = nil } + func resetCachedStateAfterLocalWipe() { + currentTier = Self.cachedTier + activeProductID = Self.cachedEntitlement?.activeProductID + statusMessage = nil + errorMessage = nil + applyDebugOverrideIfNeeded() + } + private func apply(transaction: Transaction) { guard Self.productIDs.contains(transaction.productID), transaction.revocationDate == nil else { return |
