mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Do not display empty room list state before the loading one (#2402)
* Do not display empty room list state before the loading one
This commit is contained in:
committed by
GitHub
parent
7532f96c4f
commit
598bf96208
+2
-1
@@ -17,6 +17,7 @@
|
||||
package io.element.android.libraries.matrix.api.roomlist
|
||||
|
||||
import kotlinx.coroutines.TimeoutCancellationException
|
||||
import kotlinx.coroutines.flow.SharedFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.firstOrNull
|
||||
import kotlinx.coroutines.withTimeout
|
||||
@@ -51,7 +52,7 @@ interface RoomList {
|
||||
/**
|
||||
* The list of room summaries as a flow.
|
||||
*/
|
||||
val summaries: StateFlow<List<RoomSummary>>
|
||||
val summaries: SharedFlow<List<RoomSummary>>
|
||||
|
||||
/**
|
||||
* The loading state of the room list as a flow.
|
||||
|
||||
Reference in New Issue
Block a user