mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix improper usage of stale data object.
This commit is contained in:
@@ -173,9 +173,9 @@ class InAppPaymentRecurringContextJob private constructor(
|
||||
inAppPayment
|
||||
}
|
||||
|
||||
if (hasEntitlementAlready(inAppPayment, subscription.endOfCurrentPeriod)) {
|
||||
if (hasEntitlementAlready(updatedInAppPayment, subscription.endOfCurrentPeriod)) {
|
||||
info("Already have entitlement for this badge. Marking complete.")
|
||||
markInAppPaymentCompleted(inAppPayment)
|
||||
markInAppPaymentCompleted(updatedInAppPayment)
|
||||
} else {
|
||||
submitAndValidateCredentials(updatedInAppPayment, subscription, requestContext)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user