fix(@desktop/chat): unfurl multiple link

fixes #4192
This commit is contained in:
Anthony Laibe 2021-11-29 11:26:50 +01:00
parent 23cb5136f1
commit 690c978ea2
1 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,6 @@ Column {
property string linkUrls: "" property string linkUrls: ""
property bool isCurrentUser: false property bool isCurrentUser: false
property bool isImageLink: false property bool isImageLink: false
readonly property string uuid: Utils.uuid()
spacing: Style.current.halfPadding spacing: Style.current.halfPadding
ListModel { ListModel {
@ -44,6 +43,8 @@ Column {
property bool fetched: false property bool fetched: false
property var linkData property var linkData
property int linkWidth: linksRepeater.width property int linkWidth: linksRepeater.width
readonly property string uuid: Utils.uuid()
active: true active: true
@ -78,7 +79,7 @@ Column {
} }
if (response.uuid !== root.uuid) return if (response.uuid !== linkMessageLoader.uuid) return
linkFetchConnections.enabled = false linkFetchConnections.enabled = false
@ -180,7 +181,7 @@ Column {
} }
linkFetchConnections.enabled = true linkFetchConnections.enabled = true
return root.store.chatsModelInst.getLinkPreviewData(link, root.uuid) return root.store.chatsModelInst.getLinkPreviewData(link, linkMessageLoader.uuid)
} }
// setting the height to 0 allows the "enable link" dialog to // setting the height to 0 allows the "enable link" dialog to
// disappear correctly when localAccountSensitiveSettings.neverAskAboutUnfurlingAgain // disappear correctly when localAccountSensitiveSettings.neverAskAboutUnfurlingAgain