From 7f2d18c36dabbcae0d0637d489371c2b71869e67 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 26 Oct 2020 21:44:31 +0100 Subject: [PATCH] Fix small scope issue --- resources/qml/TimelineView.qml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 516c6860..de047e8a 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -57,7 +57,6 @@ Page { property string eventId property int eventType property bool isEncrypted - property var room: TimelineManager.timeline function show(eventId_, eventType_, isEncrypted_, showAt_, position) { eventId = eventId_; @@ -78,12 +77,12 @@ Page { MenuItem { text: qsTr("Reply") - onClicked: room.replyAction(messageContextMenu.eventId) + onClicked: TimelineManager.timeline.replyAction(messageContextMenu.eventId) } MenuItem { text: qsTr("Read receipts") - onTriggered: room.readReceiptsAction(messageContextMenu.eventId) + onTriggered: TimelineManager.timeline.readReceiptsAction(messageContextMenu.eventId) } MenuItem { @@ -92,19 +91,19 @@ Page { MenuItem { text: qsTr("View raw message") - onTriggered: room.viewRawMessage(messageContextMenu.eventId) + onTriggered: TimelineManager.timeline.viewRawMessage(messageContextMenu.eventId) } MenuItem { visible: messageContextMenu.isEncrypted height: visible ? implicitHeight : 0 text: qsTr("View decrypted raw message") - onTriggered: room.viewDecryptedRawMessage(messageContextMenu.eventId) + onTriggered: TimelineManager.timeline.viewDecryptedRawMessage(messageContextMenu.eventId) } MenuItem { text: qsTr("Redact message") - onTriggered: room.redactEvent(messageContextMenu.eventId) + onTriggered: TimelineManager.timeline.redactEvent(messageContextMenu.eventId) } MenuItem {