2020-11-30 17:03:52 +00:00
|
|
|
import QtQuick 2.13
|
2021-10-26 14:21:08 +00:00
|
|
|
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
|
2021-10-28 20:23:30 +00:00
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.panels 1.0
|
|
|
|
import shared.status 1.0
|
|
|
|
import shared.controls 1.0
|
2021-10-28 20:23:30 +00:00
|
|
|
import shared.panels.chat 1.0
|
|
|
|
import shared.views.chat 1.0
|
|
|
|
import shared.controls.chat 1.0
|
2021-09-28 15:04:06 +00:00
|
|
|
|
2022-07-04 15:48:04 +00:00
|
|
|
Loader {
|
2021-07-16 15:02:47 +00:00
|
|
|
id: root
|
2022-01-18 21:02:47 +00:00
|
|
|
|
2021-07-16 15:02:47 +00:00
|
|
|
width: parent.width
|
|
|
|
z: (typeof chatLogView === "undefined") ? 1 : (chatLogView.count - index)
|
2021-10-01 15:58:36 +00:00
|
|
|
|
2022-07-04 15:48:04 +00:00
|
|
|
sourceComponent: {
|
|
|
|
switch(contentType) {
|
|
|
|
case Constants.messageContentType.chatIdentifier:
|
|
|
|
return channelIdentifierComponent
|
|
|
|
case Constants.messageContentType.fetchMoreMessagesButton:
|
|
|
|
return fetchMoreMessagesButtonComponent
|
|
|
|
case Constants.messageContentType.systemMessagePrivateGroupType:
|
|
|
|
return privateGroupHeaderComponent
|
|
|
|
case Constants.messageContentType.gapType:
|
|
|
|
return gapComponent
|
|
|
|
default:
|
|
|
|
return compactMessageComponent
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-11 21:41:34 +00:00
|
|
|
property var store
|
2021-10-21 22:39:53 +00:00
|
|
|
property var messageStore
|
2022-02-08 12:08:02 +00:00
|
|
|
property var usersStore
|
2022-01-04 12:06:05 +00:00
|
|
|
property var contactsStore
|
2021-12-14 14:19:55 +00:00
|
|
|
property var messageContextMenu
|
2022-03-14 19:32:52 +00:00
|
|
|
property string channelEmoji
|
2022-06-29 16:50:10 +00:00
|
|
|
property bool isActiveChannel: false
|
2021-12-09 12:53:40 +00:00
|
|
|
|
2022-04-13 09:59:16 +00:00
|
|
|
property var emojiPopup
|
|
|
|
|
2022-02-24 12:15:02 +00:00
|
|
|
// Once we redo qml we will know all section/chat related details in each message form the parent components
|
|
|
|
// without an explicit need to fetch those details via message store/module.
|
|
|
|
property bool isChatBlocked: false
|
|
|
|
|
2022-03-09 10:02:28 +00:00
|
|
|
property int itemIndex: -1
|
2021-12-09 12:53:40 +00:00
|
|
|
property string messageId: ""
|
2022-02-24 15:04:59 +00:00
|
|
|
property string communityId: ""
|
2021-12-09 12:53:40 +00:00
|
|
|
property string responseToMessageWithId: ""
|
|
|
|
property string senderId: ""
|
|
|
|
property string senderDisplayName: ""
|
|
|
|
property string senderLocalName: ""
|
|
|
|
property string senderIcon: ""
|
|
|
|
property bool amISender: false
|
2022-03-04 21:33:48 +00:00
|
|
|
property bool senderIsAdded: false
|
2022-06-28 18:11:18 +00:00
|
|
|
property int senderTrustStatus: Constants.trustStatus.unknown
|
2022-03-30 15:30:28 +00:00
|
|
|
readonly property string senderIconToShow: {
|
|
|
|
if ((!senderIsAdded &&
|
2022-03-04 21:33:48 +00:00
|
|
|
Global.privacyModuleInst.profilePicturesVisibility !==
|
|
|
|
Constants.profilePicturesVisibility.everyone)) {
|
2022-03-30 15:30:28 +00:00
|
|
|
return ""
|
2022-03-04 21:33:48 +00:00
|
|
|
}
|
|
|
|
return senderIcon
|
|
|
|
}
|
2021-12-09 12:53:40 +00:00
|
|
|
property string message: ""
|
|
|
|
property string messageImage: ""
|
|
|
|
property string messageTimestamp: ""
|
|
|
|
property string messageOutgoingStatus: ""
|
|
|
|
property int messageContentType: 1
|
|
|
|
property bool pinnedMessage: false
|
2022-01-05 15:50:03 +00:00
|
|
|
property string messagePinnedBy: ""
|
2021-12-29 10:32:43 +00:00
|
|
|
property var reactionsModel: []
|
2022-01-25 12:56:53 +00:00
|
|
|
property string linkUrls: ""
|
2022-02-01 18:45:28 +00:00
|
|
|
property bool isInPinnedPopup: false // The pinned popup limits the number of buttons shown
|
2022-02-09 00:04:49 +00:00
|
|
|
property var transactionParams
|
2021-12-09 12:53:40 +00:00
|
|
|
|
2022-02-25 10:42:32 +00:00
|
|
|
property int gapFrom: 0
|
|
|
|
property int gapTo: 0
|
|
|
|
|
2021-12-09 12:53:40 +00:00
|
|
|
property int prevMessageIndex: -1
|
|
|
|
property var prevMessageAsJsonObj
|
|
|
|
property int nextMessageIndex: -1
|
|
|
|
property var nextMessageAsJsonObj
|
|
|
|
|
|
|
|
property string hoveredMessage
|
|
|
|
property string activeMessage
|
|
|
|
property bool isHovered: typeof hoveredMessage !== "undefined" && hoveredMessage === messageId
|
|
|
|
property bool isMessageActive: typeof activeMessage !== "undefined" && activeMessage === messageId
|
|
|
|
|
2022-01-17 18:46:46 +00:00
|
|
|
property bool editModeOn: false
|
|
|
|
|
2021-12-09 12:53:40 +00:00
|
|
|
function setHovered(messageId, hovered) {
|
|
|
|
if (hovered) {
|
|
|
|
hoveredMessage = messageId;
|
|
|
|
} else if (hoveredMessage === messageId) {
|
|
|
|
hoveredMessage = "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Legacy
|
|
|
|
property string responseTo: responseToMessageWithId
|
|
|
|
property bool isCurrentUser: amISender
|
|
|
|
property int contentType: messageContentType
|
|
|
|
property string timestamp: messageTimestamp
|
|
|
|
property string displayUserName: senderDisplayName
|
|
|
|
property string outgoingStatus: messageOutgoingStatus
|
|
|
|
property string authorCurrentMsg: senderId
|
|
|
|
property string authorPrevMsg: {
|
2022-02-23 20:40:52 +00:00
|
|
|
if(!prevMessageAsJsonObj ||
|
|
|
|
// The system message for private groups appear as created by the group host, but it shouldn't
|
|
|
|
prevMessageAsJsonObj.contentType === Constants.messageContentType.systemMessagePrivateGroupType) {
|
2021-12-09 12:53:40 +00:00
|
|
|
return ""
|
2022-03-09 10:27:32 +00:00
|
|
|
}
|
2021-12-09 12:53:40 +00:00
|
|
|
|
|
|
|
return prevMessageAsJsonObj.senderId
|
|
|
|
}
|
|
|
|
property string prevMsgTimestamp: {
|
|
|
|
if(!prevMessageAsJsonObj)
|
|
|
|
return ""
|
|
|
|
|
|
|
|
return prevMessageAsJsonObj.timestamp
|
|
|
|
}
|
|
|
|
property string nextMsgTimestamp: {
|
|
|
|
if(!nextMessageAsJsonObj)
|
|
|
|
return ""
|
|
|
|
|
|
|
|
return nextMessageAsJsonObj.timestamp
|
|
|
|
}
|
|
|
|
|
|
|
|
property bool shouldRepeatHeader: ((parseInt(timestamp, 10) - parseInt(prevMsgTimestamp, 10)) / 60 / 1000) > Constants.repeatHeaderInterval
|
2021-10-21 22:39:53 +00:00
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
//////////////////////////////////////
|
2021-12-10 16:11:18 +00:00
|
|
|
//TODO CHECCK - REMOVE
|
2020-07-10 15:24:52 +00:00
|
|
|
property string plainText: "That's right. We're friends... Of justice, that is."
|
2020-08-12 15:01:03 +00:00
|
|
|
property string emojiReactions: ""
|
2020-07-14 15:35:21 +00:00
|
|
|
property bool timeout: false
|
2021-02-01 18:40:55 +00:00
|
|
|
property bool hasMention: false
|
2020-11-30 17:03:52 +00:00
|
|
|
property bool placeholderMessage: false
|
2021-06-11 17:41:59 +00:00
|
|
|
property bool activityCenterMessage: false
|
2021-06-14 15:40:05 +00:00
|
|
|
property bool read: true
|
2021-05-25 19:34:46 +00:00
|
|
|
property bool forceHoverHandler: false // Used to force the HoverHandler to be active (useful for messages in popups)
|
2021-06-29 14:49:32 +00:00
|
|
|
property string replaces: ""
|
|
|
|
property bool isEdited: false
|
2022-01-05 15:50:03 +00:00
|
|
|
property bool stickersLoaded: false
|
2021-12-10 16:11:18 +00:00
|
|
|
//////////////////////////////////////
|
2021-12-09 12:53:40 +00:00
|
|
|
|
2022-01-13 19:25:38 +00:00
|
|
|
property string sticker: "Qme8vJtyrEHxABcSVGPF95PtozDgUyfr1xGjePmFdZgk9v"
|
|
|
|
property int stickerPack: -1
|
2021-12-09 12:53:40 +00:00
|
|
|
property bool isEmoji: contentType === Constants.messageContentType.emojiType
|
|
|
|
property bool isImage: contentType === Constants.messageContentType.imageType
|
|
|
|
property bool isAudio: contentType === Constants.messageContentType.audioType
|
|
|
|
property bool isStatusMessage: contentType === Constants.messageContentType.systemMessagePrivateGroupType
|
|
|
|
property bool isSticker: contentType === Constants.messageContentType.stickerType
|
|
|
|
property bool isText: contentType === Constants.messageContentType.messageType || contentType === Constants.messageContentType.editType
|
2021-02-01 18:40:55 +00:00
|
|
|
property bool isMessage: isEmoji || isImage || isSticker || isText || isAudio
|
2021-12-09 12:53:40 +00:00
|
|
|
|| contentType === Constants.messageContentType.communityInviteType || contentType === Constants.messageContentType.transactionType
|
2020-06-10 15:14:12 +00:00
|
|
|
|
2021-04-23 15:49:05 +00:00
|
|
|
property bool isExpired: (outgoingStatus === "sending" && (Math.floor(timestamp) + 180000) < Date.now())
|
2021-07-15 14:59:30 +00:00
|
|
|
property int statusAgeEpoch: 0
|
2020-07-16 17:27:09 +00:00
|
|
|
|
2022-01-18 21:02:47 +00:00
|
|
|
signal imageClicked(var image)
|
2020-07-10 15:37:23 +00:00
|
|
|
property var scrollToBottom: function () {}
|
2020-11-30 17:03:52 +00:00
|
|
|
|
2021-12-14 14:19:55 +00:00
|
|
|
property var clickMessage: function(isProfileClick,
|
|
|
|
isSticker = false,
|
|
|
|
isImage = false,
|
|
|
|
image = null,
|
2022-05-17 10:40:27 +00:00
|
|
|
isEmoji = false,
|
2021-12-14 14:19:55 +00:00
|
|
|
hideEmojiPicker = false,
|
|
|
|
isReply = false,
|
|
|
|
isRightClickOnImage = false,
|
|
|
|
imageSource = "") {
|
|
|
|
|
|
|
|
if (placeholderMessage || activityCenterMessage) {
|
|
|
|
return
|
|
|
|
}
|
2021-12-09 12:53:40 +00:00
|
|
|
|
2021-12-14 14:19:55 +00:00
|
|
|
messageContextMenu.myPublicKey = userProfile.pubKey
|
2022-01-05 15:50:03 +00:00
|
|
|
messageContextMenu.amIChatAdmin = messageStore.amIChatAdmin()
|
2022-05-10 16:13:36 +00:00
|
|
|
messageContextMenu.pinMessageAllowedForMembers = messageStore.pinMessageAllowedForMembers()
|
2021-12-14 14:19:55 +00:00
|
|
|
messageContextMenu.chatType = messageStore.getChatType()
|
|
|
|
|
|
|
|
messageContextMenu.messageId = root.messageId
|
|
|
|
messageContextMenu.messageSenderId = root.senderId
|
|
|
|
messageContextMenu.messageContentType = root.messageContentType
|
|
|
|
messageContextMenu.pinnedMessage = root.pinnedMessage
|
2021-12-17 12:53:10 +00:00
|
|
|
messageContextMenu.canPin = messageStore.getNumberOfPinnedMessages() < Constants.maxNumberOfPins
|
2021-12-14 14:19:55 +00:00
|
|
|
|
|
|
|
messageContextMenu.selectedUserPublicKey = root.senderId
|
|
|
|
messageContextMenu.selectedUserDisplayName = root.senderDisplayName
|
2022-03-04 21:33:48 +00:00
|
|
|
messageContextMenu.selectedUserIcon = root.senderIconToShow
|
2021-12-14 14:19:55 +00:00
|
|
|
|
|
|
|
messageContextMenu.imageSource = imageSource
|
|
|
|
|
|
|
|
messageContextMenu.isProfile = !!isProfileClick
|
|
|
|
messageContextMenu.isRightClickOnImage = isRightClickOnImage
|
2022-05-17 10:40:27 +00:00
|
|
|
messageContextMenu.isEmoji = isEmoji
|
2022-05-17 13:09:00 +00:00
|
|
|
messageContextMenu.isSticker = isSticker
|
2021-12-14 14:19:55 +00:00
|
|
|
messageContextMenu.hideEmojiPicker = hideEmojiPicker
|
|
|
|
|
|
|
|
if(isReply){
|
|
|
|
let obj = messageStore.getMessageByIdAsJson(responseTo)
|
|
|
|
if(!obj)
|
|
|
|
return
|
|
|
|
|
2022-03-09 10:27:32 +00:00
|
|
|
messageContextMenu.messageSenderId = obj.senderId
|
|
|
|
messageContextMenu.selectedUserPublicKey = obj.senderId
|
2021-12-14 14:19:55 +00:00
|
|
|
messageContextMenu.selectedUserDisplayName = obj.senderDisplayName
|
2022-07-21 10:56:06 +00:00
|
|
|
messageContextMenu.selectedUserIcon = obj.senderIcon
|
2021-12-14 14:19:55 +00:00
|
|
|
}
|
2021-12-09 12:53:40 +00:00
|
|
|
|
2021-12-14 14:19:55 +00:00
|
|
|
messageContextMenu.popup()
|
2020-06-17 12:53:51 +00:00
|
|
|
}
|
|
|
|
|
2022-01-12 12:55:26 +00:00
|
|
|
signal showReplyArea(string messageId, string author)
|
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
|
2021-12-09 12:53:40 +00:00
|
|
|
// function showReactionAuthors(fromAccounts, emojiId) {
|
|
|
|
// return root.rootStore.showReactionAuthors(fromAccounts, emojiId)
|
|
|
|
// }
|
2021-10-01 15:58:36 +00:00
|
|
|
|
2022-01-27 11:28:27 +00:00
|
|
|
function startMessageFoundAnimation() {
|
2022-07-04 15:48:04 +00:00
|
|
|
root.item.startMessageFoundAnimation();
|
2022-01-27 11:28:27 +00:00
|
|
|
}
|
2021-10-01 15:58:36 +00:00
|
|
|
/////////////////////////////////////////////
|
|
|
|
|
2021-12-08 21:20:43 +00:00
|
|
|
|
|
|
|
signal openStickerPackPopup(string stickerPackId)
|
2021-12-09 12:53:40 +00:00
|
|
|
// Not Refactored Yet
|
|
|
|
// Connections {
|
|
|
|
// enabled: (!placeholderMessage && !!root.rootStore)
|
|
|
|
// target: !!root.rootStore ? root.rootStore.allContacts : null
|
|
|
|
// onContactChanged: {
|
|
|
|
// if (pubkey === fromAuthor) {
|
|
|
|
// const img = appMain.getProfileImage(userPubKey, isCurrentUser, useLargeImage)
|
|
|
|
// if (img) {
|
|
|
|
// profileImageSource = img
|
|
|
|
// }
|
|
|
|
// } else if (replyMessageIndex > -1 && pubkey === repliedMessageAuthorPubkey) {
|
|
|
|
// const imgReply = appMain.getProfileImage(repliedMessageAuthorPubkey, repliedMessageAuthorIsCurrentUser, false)
|
|
|
|
// if (imgReply) {
|
|
|
|
// repliedMessageUserImage = imgReply
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2021-10-01 15:58:36 +00:00
|
|
|
|
2021-05-10 19:12:26 +00:00
|
|
|
Component {
|
|
|
|
id: gapComponent
|
2021-10-21 00:41:54 +00:00
|
|
|
GapComponent {
|
2022-02-25 10:42:32 +00:00
|
|
|
gapFrom: root.gapFrom
|
|
|
|
gapTo: root.gapTo
|
2021-10-21 00:41:54 +00:00
|
|
|
onClicked: {
|
2022-01-28 23:18:30 +00:00
|
|
|
messageStore.fillGaps(messageId)
|
|
|
|
root.visible = false;
|
|
|
|
root.height = 0;
|
2021-05-10 19:12:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-04 11:55:24 +00:00
|
|
|
Component {
|
|
|
|
id: fetchMoreMessagesButtonComponent
|
2021-10-21 00:41:54 +00:00
|
|
|
FetchMoreMessagesButton {
|
2021-12-10 16:11:18 +00:00
|
|
|
nextMessageIndex: root.nextMessageIndex
|
|
|
|
nextMsgTimestamp: root.nextMsgTimestamp
|
2021-10-21 00:41:54 +00:00
|
|
|
onTimerTriggered: {
|
2022-01-28 23:18:30 +00:00
|
|
|
messageStore.requestMoreMessages();
|
2020-09-04 11:55:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:04:14 +00:00
|
|
|
Component {
|
|
|
|
id: channelIdentifierComponent
|
2021-12-10 16:11:18 +00:00
|
|
|
ChannelIdentifierView {
|
|
|
|
chatName: root.senderDisplayName
|
2022-04-01 11:46:32 +00:00
|
|
|
chatId: root.messageStore.getChatId()
|
2022-02-11 16:01:36 +00:00
|
|
|
chatType: root.messageStore.getChatType()
|
|
|
|
chatColor: root.messageStore.getChatColor()
|
2022-03-14 19:32:52 +00:00
|
|
|
chatEmoji: root.channelEmoji
|
2022-02-11 16:01:36 +00:00
|
|
|
amIChatAdmin: root.messageStore.amIChatAdmin()
|
2022-06-22 15:09:47 +00:00
|
|
|
chatIcon: root.senderIconToShow
|
2020-06-10 18:23:18 +00:00
|
|
|
}
|
2020-05-27 22:59:17 +00:00
|
|
|
}
|
|
|
|
|
2020-07-15 21:04:14 +00:00
|
|
|
// Private group Messages
|
|
|
|
Component {
|
|
|
|
id: privateGroupHeaderComponent
|
|
|
|
StyledText {
|
2020-06-25 20:17:42 +00:00
|
|
|
wrapMode: Text.Wrap
|
2020-11-30 17:03:52 +00:00
|
|
|
text: {
|
2020-09-21 15:47:15 +00:00
|
|
|
return `<html>`+
|
|
|
|
`<head>`+
|
|
|
|
`<style type="text/css">`+
|
|
|
|
`a {`+
|
|
|
|
`color: ${Style.current.textColor};`+
|
|
|
|
`text-decoration: none;`+
|
|
|
|
`}`+
|
|
|
|
`</style>`+
|
|
|
|
`</head>`+
|
|
|
|
`<body>`+
|
|
|
|
`${message}`+
|
|
|
|
`</body>`+
|
|
|
|
`</html>`;
|
|
|
|
}
|
2020-07-15 21:04:14 +00:00
|
|
|
visible: isStatusMessage
|
2020-09-21 15:47:15 +00:00
|
|
|
font.pixelSize: 14
|
|
|
|
color: Style.current.secondaryText
|
2020-07-15 21:04:14 +00:00
|
|
|
width: parent.width - 120
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
textFormat: Text.RichText
|
2020-12-07 23:38:53 +00:00
|
|
|
topPadding: root.prevMessageIndex === 1 ? Style.current.bigPadding : 0
|
2020-07-09 17:47:36 +00:00
|
|
|
}
|
2020-07-09 15:50:38 +00:00
|
|
|
}
|
2020-05-28 19:32:14 +00:00
|
|
|
|
2020-07-15 21:04:14 +00:00
|
|
|
Component {
|
|
|
|
id: compactMessageComponent
|
2022-01-18 21:02:47 +00:00
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
CompactMessageView {
|
2022-02-22 20:48:57 +00:00
|
|
|
container: root
|
2022-02-11 21:41:34 +00:00
|
|
|
store: root.store
|
2022-06-07 14:47:45 +00:00
|
|
|
message: root.message
|
2022-01-18 21:02:47 +00:00
|
|
|
messageStore: root.messageStore
|
2022-02-08 12:08:02 +00:00
|
|
|
usersStore: root.usersStore
|
2022-01-04 12:06:05 +00:00
|
|
|
contactsStore: root.contactsStore
|
2021-07-16 15:02:47 +00:00
|
|
|
messageContextMenu: root.messageContextMenu
|
2022-01-13 19:25:38 +00:00
|
|
|
contentType: root.messageContentType
|
2022-02-24 12:15:02 +00:00
|
|
|
isChatBlocked: root.isChatBlocked
|
2022-06-29 16:50:10 +00:00
|
|
|
isActiveChannel: root.isActiveChannel
|
2022-04-13 09:59:16 +00:00
|
|
|
emojiPopup: root.emojiPopup
|
2022-06-28 18:11:18 +00:00
|
|
|
senderTrustStatus: root.senderTrustStatus
|
2022-01-05 15:50:03 +00:00
|
|
|
|
2022-02-24 15:04:59 +00:00
|
|
|
communityId: root.communityId
|
2022-01-05 15:50:03 +00:00
|
|
|
stickersLoaded: root.stickersLoaded
|
2022-01-13 19:25:38 +00:00
|
|
|
sticker: root.sticker
|
|
|
|
stickerPack: root.stickerPack
|
2022-01-05 15:50:03 +00:00
|
|
|
isMessageActive: root.isMessageActive
|
2022-03-04 21:33:48 +00:00
|
|
|
senderIcon: root.senderIconToShow
|
2022-02-18 19:39:04 +00:00
|
|
|
amISender: root.amISender
|
2022-01-05 15:50:03 +00:00
|
|
|
isHovered: root.isHovered
|
2022-01-17 18:46:46 +00:00
|
|
|
editModeOn: root.editModeOn
|
2022-01-25 12:56:53 +00:00
|
|
|
linkUrls: root.linkUrls
|
2022-02-01 18:45:28 +00:00
|
|
|
isInPinnedPopup: root.isInPinnedPopup
|
2022-06-21 19:38:47 +00:00
|
|
|
pinnedMessage: root.pinnedMessage
|
2022-06-28 18:11:18 +00:00
|
|
|
canPin: !!messageStore && messageStore.getNumberOfPinnedMessages() < Constants.maxNumberOfPins
|
2022-01-05 15:50:03 +00:00
|
|
|
|
2022-02-09 00:04:49 +00:00
|
|
|
transactionParams: root.transactionParams
|
|
|
|
|
2021-07-16 15:02:47 +00:00
|
|
|
onAddEmoji: {
|
2022-05-17 10:40:27 +00:00
|
|
|
root.clickMessage(isProfileClick, isSticker, isImage , image, isEmoji, hideEmojiPicker)
|
2021-12-14 14:19:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
onClickMessage: {
|
2022-05-17 10:40:27 +00:00
|
|
|
root.clickMessage(isProfileClick, isSticker, isImage, image, isEmoji, hideEmojiPicker, isReply, isRightClickOnImage, imageSource)
|
2021-07-16 15:02:47 +00:00
|
|
|
}
|
2022-01-18 21:02:47 +00:00
|
|
|
|
2021-12-08 21:20:43 +00:00
|
|
|
onOpenStickerPackPopup: {
|
|
|
|
root.openStickerPackPopup(stickerPackId);
|
|
|
|
}
|
2022-01-12 12:55:26 +00:00
|
|
|
|
|
|
|
onReplyClicked: {
|
|
|
|
root.showReplyArea(messageId, author)
|
|
|
|
}
|
2022-01-18 21:02:47 +00:00
|
|
|
|
|
|
|
onImageClicked: root.imageClicked(image)
|
2020-07-10 15:37:23 +00:00
|
|
|
}
|
2020-05-27 22:59:17 +00:00
|
|
|
}
|
|
|
|
}
|