mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
RoomList: update LoadingState and fix a crash
This commit is contained in:
+4
-2
@@ -29,12 +29,14 @@ class FakeSyncService : SyncService {
|
||||
syncStateFlow.value = SyncState.InError
|
||||
}
|
||||
|
||||
override fun startSync() {
|
||||
override fun startSync(): Result<Unit> {
|
||||
syncStateFlow.value = SyncState.Syncing
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
override fun stopSync() {
|
||||
override fun stopSync(): Result<Unit> {
|
||||
syncStateFlow.value = SyncState.Terminated
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
override val syncState: StateFlow<SyncState> = syncStateFlow
|
||||
|
||||
Reference in New Issue
Block a user