fix(desktop/chat): Display sticker correctly in replied message.

Fix #5266
This commit is contained in:
Michal Iskierko 2022-04-06 14:28:07 +02:00 committed by Iuri Matias
parent f56383f266
commit d38e8073bf
2 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,7 @@ Loader {
property color elementsColor: amISenderOfTheRepliedMessage ? Style.current.chatReplyCurrentUser : Style.current.secondaryText
property var container
property int chatHorizontalPadding
property var stickerData
property string stickerData
signal clickMessage(bool isProfileClick, bool isSticker, bool isImage, var image, bool emojiOnly, bool hideEmojiPicker, bool isReply)
signal scrollToBottom(bool isit, var container)

View File

@ -288,8 +288,6 @@ Item {
longReply: active && textFieldImplicitWidth > width
container: root.container
chatHorizontalPadding: chatHorizontalPadding
// Not Refactored Yet
// stickerData: !!rootStore ? rootStore.chatsModelInst.messageView.messageList.getMessageData(replyMessageIndex, "sticker") : null
active: responseTo !== "" && !activityCenterMessage
function resetOriginalMessage() {
@ -309,6 +307,7 @@ Item {
repliedMessageSenderIsAdded = obj.senderIsAdded
repliedMessageContent = obj.messageText
repliedMessageImage = obj.messageImage
stickerData = obj.sticker
}
Component.onCompleted: {