Fix issue where a test user could have a tier but no subscriber.

This commit is contained in:
Alex Hart
2025-04-24 17:36:47 -03:00
committed by Cody Henthorne
parent f8d7c27583
commit ed9a945f05
2 changed files with 14 additions and 2 deletions

View File

@@ -270,10 +270,15 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
return
}
hasActiveSignalSubscription && hasActiveGooglePlayBillingSubscription -> {
Log.d(TAG, "Found erroneous mismatch. Clearing.")
Log.d(TAG, "Found active signal subscription and active google play subscription. Clearing mismatch.")
SignalStore.backup.subscriptionStateMismatchDetected = false
}
!hasActiveSignalSubscription && !hasActiveGooglePlayBillingSubscription -> {
Log.d(TAG, "Found inactive signal subscription and inactive google play subscription. Clearing mismatch.")
SignalStore.backup.subscriptionStateMismatchDetected = false
}
else -> {
Log.w(TAG, "Hit unexpected subscription mismatch state: signal:false, google:true")
return
}
}