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

@ -29,7 +29,6 @@ import kotlinx.collections.immutable.toPersistentSet
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import java.util.Optional
import kotlin.jvm.optionals.getOrNull
@Inject
@ -66,7 +65,7 @@ class SpacePresenter(
}
}.collectAsState()
val currentSpace by remember { spaceRoomList.currentSpaceFlow() }.collectAsState(Optional.empty())
val currentSpace by spaceRoomList.currentSpaceFlow.collectAsState()
fun handleEvents(event: SpaceEvents) {
when (event) {