diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-25 19:20:25 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-05-25 19:20:25 +0200 |
commit | dd74bdc697fb0fe41c5b14694dec9cc028353d23 (patch) | |
tree | bc38e59cc7d92815d172721869ffabf08673a223 /resources/qml/MessageView.qml | |
parent | Make emoji picker use the grid view (diff) | |
download | nheko-dd74bdc697fb0fe41c5b14694dec9cc028353d23.tar.xz |
Get rid of old emoji picker
Diffstat (limited to 'resources/qml/MessageView.qml')
-rw-r--r-- | resources/qml/MessageView.qml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index c75710cf..cc80cbbf 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -149,9 +149,9 @@ Item { ToolTip.visible: hovered ToolTip.delay: Nheko.tooltipDelay ToolTip.text: qsTr("React") - onClicked: emojiPopup.visible ? emojiPopup.close() : emojiPopup.show(reactButton, function(emoji) { + onClicked: emojiPopup.visible ? emojiPopup.close() : emojiPopup.show(reactButton, room.roomId, function(plaintext, markdown) { var event_id = row.model ? row.model.eventId : ""; - room.input.reaction(event_id, emoji); + room.input.reaction(event_id, plaintext); TimelineManager.focusMessageInput(); }) } @@ -666,8 +666,9 @@ Item { visible: room ? room.permissions.canSend(MtxEvent.Reaction) : false text: qsTr("Re&act") - onTriggered: emojiPopup.show(null, function(emoji) { - room.input.reaction(messageContextMenu.eventId, emoji); + onTriggered: emojiPopup.visible ? emojiPopup.close() : emojiPopup.show(null, room.roomId, function(plaintext, markdown) { + room.input.reaction(messageContextMenu.eventId, plaintext); + TimelineManager.focusMessageInput(); }) } |