refactor: Remove copy dialog before opening links

This can now be done by just selecting text
This commit is contained in:
krille-chan 2023-11-12 08:21:53 +01:00
commit e6e3589f1f
No known key found for this signature in database
2 changed files with 16 additions and 34 deletions

View file

@ -141,7 +141,11 @@ class HtmlMessage extends StatelessWidget {
const ImageExtension(),
FontColorExtension(),
],
onLinkTap: (url, _, __) => UrlLauncher(context, url).launchUrl(),
onLinkTap: (url, _, element) => UrlLauncher(
context,
url,
element?.text,
).launchUrl(),
onlyRenderTheseTags: const {
...allowedHtmlTags,
// Needed to make it work properly