use room alias where available
This commit is contained in:
parent
c857b89899
commit
8dff27c56f
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class MentionOverlay extends ConsumerWidget {
|
||||||
? null
|
? null
|
||||||
: Text(room.metadata!.topic!, maxLines: 1),
|
: Text(room.metadata!.topic!, maxLines: 1),
|
||||||
onTap: () => addTag(
|
onTap: () => addTag(
|
||||||
id: "[#${room.metadata?.name ?? "Unnamed Room"}](https://matrix.to/#/${room.metadata?.id})",
|
id: "[#${room.metadata?.name ?? "Unnamed Room"}](https://matrix.to/#/${room.metadata?.canonicalAlias ?? room.metadata?.id})",
|
||||||
name:
|
name:
|
||||||
(room.metadata?.canonicalAlias ??
|
(room.metadata?.canonicalAlias ??
|
||||||
room.metadata?.id)
|
room.metadata?.id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue