sdk (space) : use the new space/spaceUpdate api from space list

This commit is contained in:
ganfra 2025-09-24 12:48:24 +02:00
parent f3a9646db2
commit dd2c9d4450
12 changed files with 38 additions and 128 deletions

View file

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