Support one level of subspaces

This commit is contained in:
Henry Hiles 2026-06-06 15:11:40 -04:00
commit e1d7a30a06
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 93 additions and 82 deletions

View file

@ -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),
),