Skip to content

Commit 20cc013

Browse files
committed
chore: remove toast
1 parent db5ca08 commit 20cc013

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,7 @@ class WalletViewModel @Inject constructor(
276276
walletRepo.syncNodeAndWallet()
277277
.onFailure {
278278
Logger.error("Failed to refresh state: ${it.message}", it)
279-
if (it is CancellationException) return@onFailure
280-
if (it.isTxSyncTimeout()) {
281-
ToastEventBus.send(
282-
type = Toast.ToastType.ERROR,
283-
title = context.getString(R.string.wallet__ldk_sync_error_title),
284-
description = context.getString(R.string.wallet__ldk_sync_error_body),
285-
)
286-
return@onFailure
287-
}
279+
if (it is CancellationException || it.isTxSyncTimeout()) return@onFailure
288280
ToastEventBus.send(it)
289281
}
290282
}

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,6 @@
11001100
<string name="wallet__filter_title">Select Range</string>
11011101
<string name="wallet__instant_payment_received">Received Instant Bitcoin</string>
11021102
<string name="wallet__ldk_start_error_title">Lightning Startup Error</string>
1103-
<string name="wallet__ldk_sync_error_body">Unable to sync with the network. Please try again later.</string>
11041103
<string name="wallet__ldk_sync_error_title">Lightning Sync Error</string>
11051104
<string name="wallet__lnurl_p_max">Maximum amount</string>
11061105
<string name="wallet__lnurl_p_title">Pay Bitcoin</string>

0 commit comments

Comments
 (0)