don't throw when mentioning rooms with an empty alias
This commit is contained in:
parent
43ce320987
commit
603f83a86a
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ class const RoomOverlay(
|
|||
onTap: () {
|
||||
final alias = room.metadata?.canonicalAlias;
|
||||
addTag(
|
||||
id: alias == null
|
||||
id: alias == null || alias.isEmpty
|
||||
? "[#$name](matrix:roomid/${room.metadata?.id.substring(1)}${ref.read(ViaController.provider(room)).viaQuery})"
|
||||
: "[#$name](matrix:r/${alias.substring(1)})",
|
||||
name:
|
||||
|
|
|
|||
Loading…
Reference in a new issue