From 82c441dddd9d57f858c62c9fd3c8718d44ca3d7b Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 16 Nov 2020 18:41:29 +0100 Subject: Move emoji picker to qml --- resources/qml/TimelineView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'resources/qml/TimelineView.qml') diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 5fce0846..c23564c1 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -72,7 +72,9 @@ Page { MenuItem { text: qsTr("React") - onClicked: emojiPopup.show(messageContextMenu.parent, messageContextMenu.eventId) + onClicked: emojiPopup.show(messageContextMenu.parent, function(emoji) { + TimelineManager.queueReactionMessage(messageContextMenu.eventId, emoji); + }) } MenuItem { -- cgit 1.5.1