forked from Nexus/nexus
Support one level of subspaces
This commit is contained in:
parent
0c61623a94
commit
e1d7a30a06
2 changed files with 93 additions and 82 deletions
|
|
@ -213,12 +213,13 @@ class Sidebar extends HookConsumerWidget {
|
|||
selectedIndex: selectedRoomIndex ?? 0,
|
||||
sections: [
|
||||
.new(
|
||||
header: selectedSpace.room == null ? null : Text("Rooms"),
|
||||
destinations: roomsToDestinations(selectedSpace.children),
|
||||
),
|
||||
for (final subSpace in selectedSpace.subSpaces)
|
||||
.new(
|
||||
header: Text(
|
||||
subSpace.room.metadata?.name ?? "Unnamed Room",
|
||||
subSpace.room.metadata?.name ?? "Unnamed Space",
|
||||
),
|
||||
destinations: roomsToDestinations(subSpace.children),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue