summary refs log tree commit diff
path: root/resources/qml/MessageView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 14:32:16 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-02-10 14:32:16 +0100
commita62276c28933986907022662cea965cf6269eb5e (patch)
treefccd88c7244b56de35a4452c902cb85944b33482 /resources/qml/MessageView.qml
parentMerge pull request #420 from Nheko-Reborn/render-edits (diff)
downloadnheko-a62276c28933986907022662cea965cf6269eb5e.tar.xz
Fix UI allowing edits of foreign messages in some cases
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r--resources/qml/MessageView.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml
index 0f058830..50e051ab 100644
--- a/resources/qml/MessageView.qml
+++ b/resources/qml/MessageView.qml
@@ -73,7 +73,9 @@ ListView {
 
     Shortcut {
         sequence: "Ctrl+E"
-        onActivated: chat.model.edit = chat.model.reply
+        onActivated: {
+            chat.model.edit = chat.model.reply;
+        }
     }
 
     Component {