From 0078c72a374940bc815102315043106350da0911 Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Tue, 9 Jun 2020 21:28:15 -0400 Subject: Remove signals in favor of direct function calls --- resources/qml/emoji/EmojiPicker.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'resources/qml/emoji') diff --git a/resources/qml/emoji/EmojiPicker.qml b/resources/qml/emoji/EmojiPicker.qml index b76596d3..b96adf7e 100644 --- a/resources/qml/emoji/EmojiPicker.qml +++ b/resources/qml/emoji/EmojiPicker.qml @@ -10,7 +10,7 @@ import "../" Popup { - function show(showAt, room_id, event_id) { + function show(showAt, room_id, event_id) { console.debug("Showing emojiPicker for " + event_id + "in room " + room_id) parent = showAt x = Math.round((showAt.width - width) / 2) @@ -18,8 +18,7 @@ Popup { emojiPopup.room_id = room_id emojiPopup.event_id = event_id open() - } - signal picked(string room_id, string event_id, string key) + } property string room_id property string event_id @@ -42,8 +41,6 @@ Popup { focus: true closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside - onPicked: emojiPopup.close() - ColumnLayout { id: columnView anchors.fill: parent @@ -106,7 +103,8 @@ Popup { // TODO: maybe add favorites at some point? onClicked: { console.debug("Picked " + model.unicode + "in response to " + emojiPopup.event_id + " in room " + emojiPopup.room_id) - emojiPopup.picked(emojiPopup.room_id, emojiPopup.event_id, model.unicode) + emojiPopup.close() + timelineManager.queueReactionMessage(emojiPopup.room_id, emojiPopup.event_id, model.unicode) } } -- cgit 1.4.1