mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-10-06 07:44:03 +01:00
Add additional information to entitlement level log-line of context job.
This commit is contained in:
1 parent
a5c4c3b54a
commit
e083076e40
1 file changed
+3
-2
+3
-2
@@ -228,8 +228,9 @@ class InAppPaymentRecurringContextJob private constructor(
|
||||
|
||||
return when (inAppPayment.type) {
|
||||
InAppPaymentType.RECURRING_BACKUP -> {
|
||||
if (whoAmIResponse.entitlements?.backup?.backupLevel != SubscriptionsConfiguration.BACKUPS_LEVEL.toLong()) {
|
||||
info("Entitlement level does not match expected paid backups level.")
|
||||
val whoAmIEntitlementLevel = whoAmIResponse.entitlements?.backup?.backupLevel
|
||||
if (whoAmIEntitlementLevel != SubscriptionsConfiguration.BACKUPS_LEVEL.toLong()) {
|
||||
info("WhoAmI entitlement level ($whoAmIEntitlementLevel) does not match expected paid backups level (${SubscriptionsConfiguration.BACKUPS_LEVEL.toLong()}). Forcing a redemption.")
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user