mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Fix quality issue.
This commit is contained in:
+3
-3
@@ -22,11 +22,11 @@ class FakeSpaceRoomList(
|
|||||||
initialSpaceRoomList: SpaceRoomList.PaginationStatus = SpaceRoomList.PaginationStatus.Loading,
|
initialSpaceRoomList: SpaceRoomList.PaginationStatus = SpaceRoomList.PaginationStatus.Loading,
|
||||||
private val paginateResult: () -> Result<Unit> = { lambdaError() },
|
private val paginateResult: () -> Result<Unit> = { lambdaError() },
|
||||||
) : SpaceRoomList {
|
) : SpaceRoomList {
|
||||||
private val _currentSpaceFlow: MutableStateFlow<SpaceRoom?> = MutableStateFlow(initialSpaceFlowValue)
|
private val currentSpaceMutableStateFlow: MutableStateFlow<SpaceRoom?> = MutableStateFlow(initialSpaceFlowValue)
|
||||||
override fun currentSpaceFlow(): Flow<SpaceRoom?> = _currentSpaceFlow.asStateFlow()
|
override fun currentSpaceFlow(): Flow<SpaceRoom?> = currentSpaceMutableStateFlow.asStateFlow()
|
||||||
|
|
||||||
fun emitCurrentSpace(value: SpaceRoom?) {
|
fun emitCurrentSpace(value: SpaceRoom?) {
|
||||||
_currentSpaceFlow.value = value
|
currentSpaceMutableStateFlow.value = value
|
||||||
}
|
}
|
||||||
|
|
||||||
private val _spaceRoomsFlow: MutableStateFlow<List<SpaceRoom>> = MutableStateFlow(initialSpaceRoomsValue)
|
private val _spaceRoomsFlow: MutableStateFlow<List<SpaceRoom>> = MutableStateFlow(initialSpaceRoomsValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user