mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
feature (space) : iterate on space list (and space screen)
This commit is contained in:
+7
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user