porting to flow concat for the initial sync state read
This commit is contained in:
parent
5db1a87a38
commit
4d853f0338
|
@ -107,7 +107,7 @@ internal class DefaultSyncService(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun startSyncing(): Flow<Unit> {
|
override fun startSyncing(): Flow<Unit> {
|
||||||
return flow { emit(syncStore.read(SyncStore.SyncKey.Overview) != null) }.flatMapMerge { hasSynced ->
|
return flow { emit(syncStore.read(SyncStore.SyncKey.Overview) != null) }.flatMapConcat { hasSynced ->
|
||||||
when (hasSynced) {
|
when (hasSynced) {
|
||||||
true -> syncFlow.filter { false }.onStart { emit(Unit) }
|
true -> syncFlow.filter { false }.onStart { emit(Unit) }
|
||||||
false -> {
|
false -> {
|
||||||
|
|
Loading…
Reference in New Issue