Merge pull request #920 from vector-im/feature/bma/slidingSyncState
Sliding sync state rendering
This commit is contained in:
commit
8b97d50050
29 changed files with 200 additions and 32 deletions
|
|
@ -26,11 +26,11 @@ class FakeSyncService : SyncService {
|
|||
private val syncStateFlow = MutableStateFlow(SyncState.Idle)
|
||||
|
||||
fun simulateError() {
|
||||
syncStateFlow.value = SyncState.InError
|
||||
syncStateFlow.value = SyncState.Error
|
||||
}
|
||||
|
||||
override suspend fun startSync(): Result<Unit> {
|
||||
syncStateFlow.value = SyncState.Syncing
|
||||
syncStateFlow.value = SyncState.Running
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue