chore: If link, treat as regular message

This commit is contained in:
ggurdin 2026-01-26 13:41:58 -05:00
parent aa29473fbb
commit c567cc27f2
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -174,8 +174,9 @@ class HtmlMessage extends StatelessWidget {
);
String _addTokenTags() {
final regex = RegExp(r'(<[^>]+>)');
if (html.contains("<a href")) return html;
final regex = RegExp(r'(<[^>]+>)');
final matches = regex.allMatches(html);
final List<String> result = <String>[];
int lastEnd = 0;
@ -209,6 +210,8 @@ class HtmlMessage extends StatelessWidget {
}
}
debugPrint("Results: $result");
int position = 0;
final tokenPositions = tokens != null
? TokensUtil.getAdjacentTokenPositions(event.eventId, tokens!)