Fix issue of `Idle` displayed after pausing and resuming the app.
This commit is contained in:
parent
25a09bc446
commit
8f927a46ca
|
@ -80,6 +80,9 @@ class FlowSession(private val session: Session) {
|
|||
|
||||
fun liveSyncState(): Flow<SyncState> {
|
||||
return session.syncService().getSyncStateLive().asFlow()
|
||||
.startWith(session.coroutineDispatchers.io) {
|
||||
session.syncService().getSyncState()
|
||||
}
|
||||
}
|
||||
|
||||
fun livePushers(): Flow<List<Pusher>> {
|
||||
|
|
Loading…
Reference in New Issue