|
|
@ -94,21 +94,22 @@ Page { |
|
|
|
property string eventId |
|
|
|
property string eventId |
|
|
|
property int eventType |
|
|
|
property int eventType |
|
|
|
property bool isEncrypted |
|
|
|
property bool isEncrypted |
|
|
|
property bool isEditable |
|
|
|
property bool isEditable |
|
|
|
|
|
|
|
|
|
|
|
function show(eventId_, eventType_, isEncrypted_, isEditable_, showAt_) { |
|
|
|
function show(eventId_, eventType_, isEncrypted_, isEditable_, showAt_) { |
|
|
|
eventId = eventId_; |
|
|
|
eventId = eventId_; |
|
|
|
eventType = eventType_; |
|
|
|
eventType = eventType_; |
|
|
|
isEncrypted = isEncrypted_; |
|
|
|
isEncrypted = isEncrypted_; |
|
|
|
isEditable = isEditable_; |
|
|
|
isEditable = isEditable_; |
|
|
|
if (showAt_) |
|
|
|
if (showAt_) |
|
|
|
open(showAt_); |
|
|
|
open(showAt_); |
|
|
|
else |
|
|
|
else |
|
|
|
open(); |
|
|
|
open(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Platform.MenuItem { |
|
|
|
Platform.MenuItem { |
|
|
|
id: reactionOption |
|
|
|
id: reactionOption |
|
|
|
|
|
|
|
|
|
|
|
text: qsTr("React") |
|
|
|
text: qsTr("React") |
|
|
|
onTriggered: emojiPopup.show(null, function(emoji) { |
|
|
|
onTriggered: emojiPopup.show(null, function(emoji) { |
|
|
|
TimelineManager.queueReactionMessage(messageContextMenu.eventId, emoji); |
|
|
|
TimelineManager.queueReactionMessage(messageContextMenu.eventId, emoji); |
|
|
|