Skip to content

Commit 57c789f

Browse files
authored
Merge pull request #523 from synonymdev/fix/force-sync-on-boost
fix: sync node and activities after a successful boost
2 parents 46a9744 + 9f625cf commit 57c789f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/src/main/java/to/bitkit/ui/shared/toast/ToastQueueManager.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class ToastQueueManager(private val scope: CoroutineScope) {
4949
}
5050
newQueue
5151
}
52-
// If no toast is currently displayed, show this one immediately
53-
showNextToastIfAvailable()
52+
dismissCurrentToast()
5453
}
5554

5655
/**

app/src/main/java/to/bitkit/ui/sheets/BoostTransactionViewModel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ class BoostTransactionViewModel @Inject constructor(
211211
Logger.debug("Boost successful. newTxId: $newTxId", context = TAG)
212212
updateActivity(newTxId = newTxId, isRBF = isRBF).fold(
213213
onSuccess = {
214+
lightningRepo.sync()
215+
activityRepo.syncActivities()
214216
_uiState.update { it.copy(boosting = false) }
215217
setBoostTransactionEffect(BoostTransactionEffects.OnBoostSuccess)
216218
},

0 commit comments

Comments
 (0)