fix: Propagate `root.linkPreviewModel` (#11673)
This commit is contained in:
parent
9719b5899b
commit
4a4e3c5663
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue