summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-26 02:06:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-26 02:06:38 +0200
commit8bf26917ad0f9f8d74128fbb8d9ad2c8fd495068 (patch)
tree56894a67bdeb3568a04942a58710cdc61af6b31b /resources/qml/TimelineView.qml
parentOptimize scrolling a little bit (diff)
downloadnheko-8bf26917ad0f9f8d74128fbb8d9ad2c8fd495068.tar.xz
Make long press menu actually work
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r--resources/qml/TimelineView.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index 7bdeb01f..8a5612d2 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -42,10 +42,14 @@ Page {
 		id: messageContextMenu
 		modal: true
 
-		function show(eventId_, eventType_, isEncrypted_, showAt_) {
+		function show(eventId_, eventType_, isEncrypted_, showAt_, position) {
 			eventId = eventId_
 			eventType = eventType_
 			isEncrypted = isEncrypted_
+
+			if (position)
+			popup(position, showAt_)
+			else
 			popup(showAt_)
 		}