sdk (space) : use the new space/spaceUpdate api from space list
This commit is contained in:
parent
f3a9646db2
commit
dd2c9d4450
12 changed files with 38 additions and 128 deletions
|
|
@ -24,7 +24,7 @@ class FakeSpaceRoomList(
|
|||
private val paginateResult: () -> Result<Unit> = { lambdaError() },
|
||||
) : SpaceRoomList {
|
||||
private val currentSpaceMutableStateFlow: MutableStateFlow<Optional<SpaceRoom>> = MutableStateFlow(Optional.ofNullable(initialSpaceFlowValue))
|
||||
override fun currentSpaceFlow(): StateFlow<Optional<SpaceRoom>> = currentSpaceMutableStateFlow.asStateFlow()
|
||||
override val currentSpaceFlow: StateFlow<Optional<SpaceRoom>> = currentSpaceMutableStateFlow.asStateFlow()
|
||||
|
||||
fun emitCurrentSpace(value: SpaceRoom?) {
|
||||
currentSpaceMutableStateFlow.value = Optional.ofNullable(value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue