fix: Propagate `root.linkPreviewModel` (#11673)

This commit is contained in:
Igor Sirotin 2023-07-26 17:09:36 +03:00 committed by GitHub
parent 9719b5899b
commit 4a4e3c5663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -39,6 +39,7 @@ Control {
property string messageAttachments: ""
property var reactionIcons: []
property var linkPreviewModel
property string messageId: ""
property bool editMode: false
@ -351,7 +352,7 @@ Control {
Loader {
id: linksLoader
Layout.fillWidth: true
active: !root.editMode && root.linkPreviewModel.count > 0
active: !root.editMode && root.linkPreviewModel && root.linkPreviewModel.count > 0
visible: active
}
Loader {

View File

@ -98,7 +98,7 @@ StatusDialog {
messagePinnedBy: model.pinnedBy
sticker: model.sticker
stickerPack: model.stickerPack
linkUrls: model.links
linkPreviewModel: model.linkPreviewModel
transactionParams: model.transactionParameters
quotedMessageText: model.quotedMessageParsedText
quotedMessageFrom: model.quotedMessageFrom

View File

@ -296,7 +296,6 @@ Item {
editModeOn: model.editMode
onEditModeOnChanged: root.editModeChanged(editModeOn)
isEdited: model.isEdited
linkUrls: model.links
linkPreviewModel: model.linkPreviewModel
messageAttachments: model.messageAttachments
transactionParams: model.transactionParameters

View File

@ -60,7 +60,6 @@ Loader {
property bool pinnedMessage: false
property string messagePinnedBy: ""
property var reactionsModel: []
property string linkUrls: ""
property var linkPreviewModel
property string messageAttachments: ""
property var transactionParams
@ -518,6 +517,7 @@ Loader {
isSending: root.isSending
resendError: root.resendError
reactionsModel: root.reactionsModel
linkPreviewModel: root.linkPreviewModel
showHeader: root.shouldRepeatHeader || dateGroupLabel.visible || isAReply ||
root.prevMessageContentType === Constants.messageContentType.systemMessagePrivateGroupType ||