chore: If link, treat as regular message
This commit is contained in:
parent
aa29473fbb
commit
c567cc27f2
1 changed files with 4 additions and 1 deletions
|
|
@ -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!)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue