From 2d678bdcf6d23dc82ad5edbb55443003e170fca3 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Thu, 29 Apr 2021 23:38:45 +0200 Subject: Allow copying messages via right click fixes #291 --- resources/qml/delegates/TextMessage.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'resources/qml/delegates') diff --git a/resources/qml/delegates/TextMessage.qml b/resources/qml/delegates/TextMessage.qml index 1624d95c..f44165b4 100644 --- a/resources/qml/delegates/TextMessage.qml +++ b/resources/qml/delegates/TextMessage.qml @@ -7,6 +7,7 @@ import im.nheko 1.0 MatrixText { property string formatted: model.data.formattedBody + property string copyText: selectedText ? getText(selectionStart, selectionEnd) : model.data.body text: "" + formatted.replace("
", "
")
     width: parent ? parent.width : undefined
-- 
cgit 1.5.1