Split out backup and subscription error sheet handling.

This commit is contained in:
Alex Hart
2024-06-25 14:53:24 -03:00
committed by Nicholas Tinsley
parent 37a2d5fbca
commit b55ba67b66
2 changed files with 30 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ class TerminalDonationDelegate(
private fun handleInAppPaymentSheets() {
lifecycleDisposable += Single.fromCallable {
SignalDatabase.inAppPayments.consumeInAppPaymentsToNotifyUser()
SignalDatabase.inAppPayments.consumeDonationPaymentsToNotifyUser()
}.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribeBy { inAppPayments ->
for (payment in inAppPayments) {
if (payment.data.error == null && payment.state == InAppPaymentTable.State.END) {