fix mentions from links
This commit is contained in:
parent
7d4832895d
commit
f4136fe0a0
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue