Fix via handling
This commit is contained in:
parent
f4b2669f3d
commit
2c23951ea8
5 changed files with 101 additions and 99 deletions
|
|
@ -30,7 +30,8 @@ extension LinkToMention on String {
|
|||
final identifier = uri.pathSegments.last;
|
||||
if (identifier.isNotEmpty) {
|
||||
return "${switch (uri.pathSegments.firstOrNull) {
|
||||
"r" || "roomid" => "#",
|
||||
"r" => "#",
|
||||
"roomid" => "!",
|
||||
"u" => "@",
|
||||
_ => "",
|
||||
}}${Uri.decodeComponent(identifier)}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue