File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
app/src/main/java/to/bitkit/androidServices Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,11 @@ class LightningNodeService : Service() {
7979 if (event !is Event .PaymentReceived && event !is Event .OnchainTransactionReceived ) return
8080 val command = NotifyPaymentReceived .Command .from(event, includeNotification = true ) ? : return
8181
82- notifyPaymentReceivedHandler(command)
83- .onSuccess {
84- Logger .debug(" Payment notification result: $it " , context = TAG )
85- if (it !is NotifyPaymentReceived .Result .ShowNotification ) return
86- showPaymentNotification(it.sheet, it.notification)
87- }
88- .onFailure {
89- Logger .error(" Failed to handle payment notification" , it, context = TAG )
90- }
82+ notifyPaymentReceivedHandler(command).onSuccess {
83+ Logger .debug(" Payment notification result: $it " , context = TAG )
84+ if (it !is NotifyPaymentReceived .Result .ShowNotification ) return
85+ showPaymentNotification(it.sheet, it.notification)
86+ }
9187 }
9288
9389 private fun showPaymentNotification (
You can’t perform that action at this time.
0 commit comments