Show link preview for links in room topics

This has an important security benefit, to prevent hiding fake links
behind real-looking ones.
This commit is contained in:
Joshua Goins
2024-02-29 14:43:12 -05:00
committed by Tobias Fella
parent 1f4a271dd6
commit cb9fd02dc7

View File

@@ -87,5 +87,10 @@ ColumnLayout {
textFormat: TextEdit.MarkdownText
wrapMode: Text.Wrap
onLinkActivated: link => UrlHelper.openUrl(link)
onHoveredLinkChanged: if (hoveredLink.length > 0 && hoveredLink !== "1") {
applicationWindow().hoverLinkIndicator.text = hoveredLink;
} else {
applicationWindow().hoverLinkIndicator.text = "";
}
}
}