Render subspace avatars, if available
This commit is contained in:
parent
84a729aea8
commit
d513e466fd
1 changed files with 15 additions and 3 deletions
|
|
@ -62,7 +62,6 @@ class Sidebar extends HookConsumerWidget {
|
||||||
fallback: selectedSpaceId == "dms"
|
fallback: selectedSpaceId == "dms"
|
||||||
? null
|
? null
|
||||||
: Icon(Icons.numbers),
|
: Icon(Icons.numbers),
|
||||||
// space.client.headers,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
@ -220,8 +219,21 @@ class Sidebar extends HookConsumerWidget {
|
||||||
),
|
),
|
||||||
for (final subSpace in selectedSpace.subSpaces)
|
for (final subSpace in selectedSpace.subSpaces)
|
||||||
.new(
|
.new(
|
||||||
header: Text(
|
header: Row(
|
||||||
subSpace.room.metadata?.name ?? "Unnamed Space",
|
spacing: 8,
|
||||||
|
children: [
|
||||||
|
SizedBox(width: 16, child: Divider()),
|
||||||
|
if (subSpace.room.metadata?.avatar != null)
|
||||||
|
AvatarOrHash(
|
||||||
|
subSpace.room.metadata?.avatar,
|
||||||
|
subSpace.room.metadata?.name ?? "Unnamed Room",
|
||||||
|
height: 16,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
subSpace.room.metadata?.name ?? "Unnamed Space",
|
||||||
|
),
|
||||||
|
Expanded(child: Divider()),
|
||||||
|
],
|
||||||
),
|
),
|
||||||
destinations: roomsToDestinations(subSpace.children),
|
destinations: roomsToDestinations(subSpace.children),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue