fix mentions from links

This commit is contained in:
Henry Hiles 2025-12-04 20:58:43 -05:00
commit f4136fe0a0
No known key found for this signature in database

View file

@ -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,