Merge pull request #920 from vector-im/feature/bma/slidingSyncState

Sliding sync state rendering
This commit is contained in:
Benoit Marty 2023-07-19 16:26:14 +02:00 committed by GitHub
commit 8b97d50050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 200 additions and 32 deletions

View file

@ -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)
}