summary refs log tree commit diff
path: root/resources/qml/emoji
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-06-09 21:28:15 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-06-09 21:28:15 -0400
commit0078c72a374940bc815102315043106350da0911 (patch)
tree9284612527426adf9c466d85b246f51c0865e385 /resources/qml/emoji
parentRemove duplicate search icons (diff)
downloadnheko-0078c72a374940bc815102315043106350da0911.tar.xz
Remove signals in favor of direct function calls
Diffstat (limited to 'resources/qml/emoji')
-rw-r--r--resources/qml/emoji/EmojiPicker.qml10
1 files changed, 4 insertions, 6 deletions
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)
                 }
             }