Do not check if purchase was within last month.

This commit is contained in:
Alex Hart
2025-06-12 09:51:59 -03:00
committed by Michelle Tang
parent 0ab77e159d
commit 4a1baa75a8
3 changed files with 2 additions and 17 deletions

View File

@@ -281,7 +281,7 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
val hasActiveGooglePlayBillingSubscription = when (val purchaseResult = AppDependencies.billingApi.queryPurchases()) {
is BillingPurchaseResult.Success -> {
Log.d(TAG, "[subscriptionStateMismatchDetected] Found a purchase: $purchaseResult")
purchaseResult.isAcknowledged && purchaseResult.isWithinTheLastMonth() && purchaseResult.isAutoRenewing
purchaseResult.isAcknowledged && purchaseResult.isAutoRenewing
}
else -> {
Log.d(TAG, "[subscriptionStateMismatchDetected] No purchase found in Google Play Billing: $purchaseResult")