mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Add additional information to entitlement level log-line of context job.
This commit is contained in:
committed by
Greyson Parrelli
parent
a5c4c3b54a
commit
e083076e40
@@ -228,8 +228,9 @@ class InAppPaymentRecurringContextJob private constructor(
|
|||||||
|
|
||||||
return when (inAppPayment.type) {
|
return when (inAppPayment.type) {
|
||||||
InAppPaymentType.RECURRING_BACKUP -> {
|
InAppPaymentType.RECURRING_BACKUP -> {
|
||||||
if (whoAmIResponse.entitlements?.backup?.backupLevel != SubscriptionsConfiguration.BACKUPS_LEVEL.toLong()) {
|
val whoAmIEntitlementLevel = whoAmIResponse.entitlements?.backup?.backupLevel
|
||||||
info("Entitlement level does not match expected paid backups level.")
|
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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user