mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 21:24:42 +00:00
ActiveSubscription state error unit tests for recurring job.
This commit is contained in:
committed by
Greyson Parrelli
parent
fd1e47888a
commit
c723bc812a
@@ -443,7 +443,6 @@ class InAppPaymentRecurringContextJob private constructor(
|
||||
inAppPayment: InAppPaymentTable.InAppPayment,
|
||||
serviceResponse: ServiceResponse<ReceiptCredentialResponse>
|
||||
) {
|
||||
val isForKeepAlive = inAppPayment.data.redemption!!.keepAlive == true
|
||||
val applicationError = serviceResponse.applicationError.get()
|
||||
when (serviceResponse.status) {
|
||||
204 -> {
|
||||
@@ -482,6 +481,7 @@ class InAppPaymentRecurringContextJob private constructor(
|
||||
}
|
||||
|
||||
updateInAppPaymentWithTokenAlreadyRedeemedError(inAppPayment)
|
||||
throw Exception(applicationError)
|
||||
}
|
||||
|
||||
else -> {
|
||||
|
||||
Reference in New Issue
Block a user