lots of stuff

This commit is contained in:
Henry Hiles 2025-11-14 15:50:38 -05:00
commit ba9e99a951
No known key found for this signature in database
19 changed files with 608 additions and 360 deletions

View file

@ -30,24 +30,27 @@ class SpacesController extends AsyncNotifier<List<Space>> {
return [
Space(
client: client,
title: "Home",
children: topLevelRooms,
avatar: Icon(Icons.home),
icon: Icon(Icons.home),
fake: true,
),
Space(
client: client,
title: "Direct Messages",
children: await Future.wait(
client.rooms
.where((room) => room.isDirectChat)
.map((room) => room.fullRoom),
),
avatar: Icon(Icons.person),
icon: Icon(Icons.person),
fake: true,
),
...(await Future.wait(
topLevelSpaces.map(
(space) async => Space(
client: client,
title: space.title,
avatar: space.avatar,
children: await Future.wait(