feature (space) : iterate on space list (and space screen)

This commit is contained in:
ganfra 2025-09-08 21:57:25 +02:00 committed by Benoit Marty
parent 4048bb7fb6
commit b45a4c3b2c
11 changed files with 79 additions and 44 deletions

View file

@ -30,6 +30,13 @@ interface SpaceEntryPoint : FeatureEntryPoint {
sealed interface Params : Plugin {
data class Id(val roomId: RoomId) : Params
data class Full(val spaceRoom: SpaceRoom) : Params
fun roomId(): RoomId {
return when (this) {
is Id -> roomId
is Full -> spaceRoom.roomId
}
}
}
interface Callback : Plugin {