Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-09 18:14:18 +04:00
parent 997194b3fb
commit 93bab15d0c
3 changed files with 13 additions and 13 deletions

View file

@ -61,6 +61,7 @@ internal class DefaultHistoryTxListManager @AssistedInject constructor(
logError(error)
true
}
.runningReduce { previous, new -> if (previous.isContent && !new.isContent) previous else new }
.flowOn(dispatchers.io)
.stateIn(modelScope, SharingStarted.Eagerly, HistoryState.Loading)
}
@ -73,7 +74,7 @@ internal class DefaultHistoryTxListManager @AssistedInject constructor(
actionsFlow.trySend(Action.LoadMore)
}
private fun buildPipeline() = channelFlow {
private fun buildPipeline(): Flow<HistoryState> = channelFlow {
val reloadInitialLoading = flow {
// initial load
emit(Unit)