File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ 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.invoke (command).onSuccess {
82+ notifyPaymentReceivedHandler(command).onSuccess {
8383 Logger .debug(" Payment notification result: $it " , context = TAG )
8484 if (it !is NotifyPaymentReceived .Result .ShowNotification ) return
8585 showPaymentNotification(it.sheet, it.notification)
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ class WalletRepo @Inject constructor(
307307 }
308308
309309 suspend fun wipeWallet (walletIndex : Int = 0): Result <Unit > = withContext(bgDispatcher) {
310- wipeWalletUseCase.invoke (
310+ wipeWalletUseCase(
311311 walletIndex = walletIndex,
312312 resetWalletState = ::resetState,
313313 onSuccess = ::setWalletExistsState,
Original file line number Diff line number Diff line change @@ -552,7 +552,7 @@ class AppViewModel @Inject constructor(
552552
553553 private suspend fun notifyPaymentReceived (event : Event ) {
554554 val command = NotifyPaymentReceived .Command .from(event) ? : return
555- val result = notifyPaymentReceivedHandler.invoke (command).getOrNull()
555+ val result = notifyPaymentReceivedHandler(command).getOrNull()
556556 if (result !is NotifyPaymentReceived .Result .ShowSheet ) return
557557 showTransactionSheet(result.sheet)
558558 }
You can’t perform that action at this time.
0 commit comments