From f4136fe0a0c10860355211e397fde6c21c2b9f7d Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Thu, 4 Dec 2025 20:58:43 -0500 Subject: [PATCH] fix mentions from links --- lib/widgets/chat_page/html/html.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/widgets/chat_page/html/html.dart b/lib/widgets/chat_page/html/html.dart index dcb4e4f..5509869 100644 --- a/lib/widgets/chat_page/html/html.dart +++ b/lib/widgets/chat_page/html/html.dart @@ -41,7 +41,9 @@ class Html extends ConsumerWidget { ? InlineCustomWidget( child: ActionChip( label: Text( - element.text, + element.text + .replaceFirst("https://matrix.to/#/", "") + .replaceFirst("http://matrix.to/#/", ""), style: TextStyle( fontWeight: FontWeight.bold, color: Theme.of(context).colorScheme.onPrimary,