This commit is contained in:
Henry Hiles 2025-12-03 22:21:42 -05:00
commit a4d60e6c83
No known key found for this signature in database
3 changed files with 2 additions and 57 deletions

View file

@ -50,7 +50,7 @@ class Sidebar extends HookConsumerWidget {
return NavigationRail(
scrollable: true,
onDestinationSelected: (value) {
selectedSpaceNotifier.set(spaces[value].roomData?.id);
selectedSpaceNotifier.set(spaces[value].id);
selectedRoomNotifier.set(
spaces[value].children.firstOrNull?.roomData.id,
);
@ -151,7 +151,7 @@ class Sidebar extends HookConsumerWidget {
hasBadge: room.roomData.hasNewMessages,
room.avatar,
room.title,
fallback: selectedSpace == 1
fallback: selectedSpace == "dms"
? null
: Icon(Icons.numbers),
headers: space.client.headers,