mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Split out backup and subscription error sheet handling.
This commit is contained in:
committed by
Nicholas Tinsley
parent
37a2d5fbca
commit
b55ba67b66
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user