lots of stuff
This commit is contained in:
parent
8bc010cfc7
commit
ba9e99a951
19 changed files with 608 additions and 360 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue