fix(desktop/chatInput) sticker was not shown in reply area

Closes #4023
This commit is contained in:
Alexandra Betouni 2021-11-09 18:46:18 +02:00 committed by Iuri Matias
parent f913dce44a
commit b9fcbcf5d3
2 changed files with 4 additions and 2 deletions

View File

@ -554,7 +554,7 @@ Rectangle {
replyArea.identicon = identicon replyArea.identicon = identicon
replyArea.contentType = contentType replyArea.contentType = contentType
replyArea.image = image replyArea.image = image
replyArea.sticker = sticker replyArea.stickerData = sticker
messageInputField.forceActiveFocus(); messageInputField.forceActiveFocus();
} }
@ -848,6 +848,7 @@ Rectangle {
anchors.rightMargin: 2 anchors.rightMargin: 2
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 2 anchors.topMargin: 2
stickerData: sticker
onCloseButtonClicked: { onCloseButtonClicked: {
isReply = false isReply = false
} }

View File

@ -20,7 +20,7 @@ Rectangle {
property string message : "" property string message : ""
property string identicon: "" property string identicon: ""
property string image: "" property string image: ""
property string sticker: "" property string stickerData: ""
property int contentType: -1 property int contentType: -1
signal closeButtonClicked() signal closeButtonClicked()
@ -88,6 +88,7 @@ Rectangle {
anchors.topMargin: 2 anchors.topMargin: 2
imageWidth: 64 imageWidth: 64
imageHeight: 64 imageHeight: 64
stickerData: root.stickerData
color: Style.current.transparent color: Style.current.transparent
contentType: root.contentType contentType: root.contentType
} }