parent
ac31fbb74d
commit
8692527105
1 changed files with 16 additions and 11 deletions
|
|
@ -155,27 +155,32 @@ class const RoomSummarySheet(
|
||||||
title: const Text("Invite reason"),
|
title: const Text("Invite reason"),
|
||||||
subtitle: SelectableText(reason),
|
subtitle: SelectableText(reason),
|
||||||
),
|
),
|
||||||
// Invite state never includes the member count
|
|
||||||
if (summary.joinedMembers != null || !isInvite)
|
if (summary.joinedMembers != null)
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
"${summary.joinedMembers ?? "Unknown number of"} members",
|
"${summary.joinedMembers ?? "Unknown number of"} members",
|
||||||
),
|
),
|
||||||
leading: Icon(Icons.people),
|
leading: Icon(Icons.people),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
if (summary.canonicalAlias case final canonicalAlias?)
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text(
|
title: Text("Canonical Alias"),
|
||||||
summary.canonicalAlias == null ? "Room ID" : "Canonical Alias",
|
subtitle: SelectableText(canonicalAlias),
|
||||||
),
|
|
||||||
subtitle: SelectableText(
|
|
||||||
summary.canonicalAlias ?? summary.roomId,
|
|
||||||
),
|
|
||||||
leading: Icon(Icons.numbers),
|
leading: Icon(Icons.numbers),
|
||||||
),
|
),
|
||||||
if (summary.topic != null)
|
|
||||||
|
ListTile(
|
||||||
|
title: Text("Room ID"),
|
||||||
|
subtitle: SelectableText(summary.roomId),
|
||||||
|
leading: Icon(Icons.badge),
|
||||||
|
),
|
||||||
|
|
||||||
|
if (summary.topic case final topic?)
|
||||||
ListTile(
|
ListTile(
|
||||||
title: Text("Topic"),
|
title: Text("Topic"),
|
||||||
subtitle: LinkifiedText(summary.topic!, roomId: summary.roomId),
|
subtitle: LinkifiedText(topic, roomId: summary.roomId),
|
||||||
leading: Icon(Icons.info),
|
leading: Icon(Icons.info),
|
||||||
),
|
),
|
||||||
if (isKnocking)
|
if (isKnocking)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue