feature (space) : iterate on space list (and space screen)
This commit is contained in:
parent
4048bb7fb6
commit
b45a4c3b2c
11 changed files with 79 additions and 44 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue