Skip to content

Commit f99f1ff

Browse files
committed
chore: revert explicit invoke on ops calls
1 parent 960dad4 commit f99f1ff

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main/java/to/bitkit/androidServices/LightningNodeService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

app/src/main/java/to/bitkit/repositories/WalletRepo.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

app/src/main/java/to/bitkit/viewmodels/AppViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)