summary refs log tree commit diff
path: root/resources/qml/TimelineView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r--resources/qml/TimelineView.qml21
1 files changed, 20 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml

index b5097bc7..3da2f09c 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml
@@ -6,8 +6,10 @@ import QtQuick.Window 2.2 import Qt.labs.settings 1.0 import im.nheko 1.0 +import im.nheko.EmojiModel 1.0 import "./delegates" +import "./emoji" Page { property var colors: currentActivePalette @@ -35,6 +37,20 @@ Page { property bool message_hover_highlight: false } + EmojiPicker { + id: emojiPopup + width: 7 * 52 + 20 + height: 6 * 52 + colors: palette + model: EmojiProxyModel { + category: Emoji.Category.People + sourceModel: EmojiModel {} + } + Component.onCompleted: { + emojiPopup.picked.connect(timelineManager.queueReactionMessage) + } + } + Menu { id: messageContextMenu modal: true @@ -49,7 +65,10 @@ Page { property string eventId property int eventType property bool isEncrypted - + MenuItem { + text: qsTr("React") + onClicked: chat.model.reactAction(messageContextMenu.eventId) + } MenuItem { text: qsTr("Reply") onClicked: chat.model.replyAction(messageContextMenu.eventId)