diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupSubscriptionCheckJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupSubscriptionCheckJob.kt index c16fafb7bf..f397b09f0b 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupSubscriptionCheckJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/BackupSubscriptionCheckJob.kt @@ -77,7 +77,7 @@ class BackupSubscriptionCheckJob private constructor(parameters: Parameters) : C } if (!RemoteConfig.messageBackups) { - Log.i(TAG, "Message backups are not enabled. Clearing mismatch value and exiting.") + Log.i(TAG, "Message backups feature is not available. Clearing mismatch value and exiting.") SignalStore.backup.subscriptionStateMismatchDetected = false return Result.success() } @@ -94,6 +94,12 @@ class BackupSubscriptionCheckJob private constructor(parameters: Parameters) : C return Result.success() } + if (!SignalStore.backup.areBackupsEnabled) { + Log.i(TAG, "Backups are not enabled on this device. Clearing mismatch value and exiting.") + SignalStore.backup.subscriptionStateMismatchDetected = false + return Result.success() + } + val purchase: BillingPurchaseResult = AppDependencies.billingApi.queryPurchases() Log.i(TAG, "Retrieved purchase result from Billing api: $purchase")