mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 18:26:57 +00:00
Don't wrap donation errors.
This commit is contained in:
@@ -135,7 +135,13 @@ class StripePaymentInProgressViewModel(
|
||||
.map { (_, paymentMethod) -> paymentMethod ?: secure3DSAction.paymentMethodId!! }
|
||||
}
|
||||
.flatMapCompletable { stripeRepository.setDefaultPaymentMethod(it) }
|
||||
.onErrorResumeNext { Completable.error(DonationError.getPaymentSetupError(DonationErrorSource.SUBSCRIPTION, it)) }
|
||||
.onErrorResumeNext {
|
||||
if (it is DonationError) {
|
||||
Completable.error(it)
|
||||
} else {
|
||||
Completable.error(DonationError.getPaymentSetupError(DonationErrorSource.SUBSCRIPTION, it))
|
||||
}
|
||||
}
|
||||
|
||||
disposables += setup.andThen(setLevel).subscribeBy(
|
||||
onError = { throwable ->
|
||||
|
||||
Reference in New Issue
Block a user