summary refs log tree commit diff
path: root/resources/qml/MatrixText.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/MatrixText.qml')
-rw-r--r--resources/qml/MatrixText.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/resources/qml/MatrixText.qml b/resources/qml/MatrixText.qml

index 9a4f7348..c83069ec 100644 --- a/resources/qml/MatrixText.qml +++ b/resources/qml/MatrixText.qml
@@ -8,6 +8,9 @@ TextEdit { selectByMouse: true color: colors.text + font.hintingPreference: Font.PreferFullHinting + renderType: Text.NativeRendering + onLinkActivated: { if (/^https:\/\/matrix.to\/#\/(@.*)$/.test(link)) chat.model.openUserProfile(/^https:\/\/matrix.to\/#\/(@.*)$/.exec(link)[1]) else if (/^https:\/\/matrix.to\/#\/(![^\/]*)$/.test(link)) timelineManager.setHistoryView(/^https:\/\/matrix.to\/#\/(!.*)$/.exec(link)[1])