mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix missed cancelation check.
This commit is contained in:
@@ -238,8 +238,8 @@ class InAppPaymentRecurringContextJob private constructor(
|
|||||||
warning("Charge failure detected on active subscription: ${chargeFailure.code}: ${chargeFailure.message}")
|
warning("Charge failure detected on active subscription: ${chargeFailure.code}: ${chargeFailure.message}")
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inAppPayment.data.redemption!!.keepAlive == true) {
|
if (inAppPayment.data.redemption!!.keepAlive == true && !subscription.isCanceled) {
|
||||||
warning("Payment failure during keep-alive, allow keep-alive to retry later.")
|
warning("Payment failure for uncanceled subscription during keep-alive, allow keep-alive to retry later.")
|
||||||
|
|
||||||
SignalDatabase.inAppPayments.update(
|
SignalDatabase.inAppPayments.update(
|
||||||
inAppPayment.copy(
|
inAppPayment.copy(
|
||||||
|
|||||||
Reference in New Issue
Block a user