Support matrix: uris

This commit is contained in:
Henry Hiles 2025-12-27 13:42:10 -05:00
commit 50103301d6
No known key found for this signature in database
3 changed files with 33 additions and 33 deletions

View file

@ -41,9 +41,9 @@ class Html extends ConsumerWidget {
"blockquote" => Quoted(Html(element.innerHtml, client: client)),
"a" =>
Uri.tryParse(element.attributes["href"] ?? "")?.host == "matrix.to"
? InlineCustomWidget(child: MentionChip(element.text))
: null,
element.attributes["href"]?.parseIdentifierIntoParts() == null
? null
: InlineCustomWidget(child: MentionChip(element.text)),
"img" =>
element.attributes["src"] == null