fix: restored community links old unfurling (#11988)
This commit is contained in:
parent
0ef1001825
commit
7c48447d50
|
@ -326,17 +326,12 @@ ColumnLayout {
|
||||||
name: "loadImage"
|
name: "loadImage"
|
||||||
when: tempLoader.unfurl && tempLoader.isImage
|
when: tempLoader.unfurl && tempLoader.isImage
|
||||||
PropertyChanges { target: tempLoader; sourceComponent: unfurledImageComponent }
|
PropertyChanges { target: tempLoader; sourceComponent: unfurledImageComponent }
|
||||||
|
},
|
||||||
|
State {
|
||||||
|
name: "statusInvitation"
|
||||||
|
when: tempLoader.unfurl && tempLoader.isStatusDeepLink
|
||||||
|
PropertyChanges { target: tempLoader; sourceComponent: invitationBubble }
|
||||||
}
|
}
|
||||||
// State {
|
|
||||||
// name: "loadLinkPreview"
|
|
||||||
// when: unfurl && !isImage && !isStatusDeepLink
|
|
||||||
// PropertyChanges { target: tempLoader; sourceComponent: unfurledLinkComponent }
|
|
||||||
// },
|
|
||||||
// State {
|
|
||||||
// name: "statusInvitation"
|
|
||||||
// when: unfurl && isStatusDeepLink
|
|
||||||
// PropertyChanges { target: tempLoader; sourceComponent: invitationBubble }
|
|
||||||
// }
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -453,7 +448,4 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,10 +71,12 @@ Loader {
|
||||||
return []
|
return []
|
||||||
const separator = " "
|
const separator = " "
|
||||||
const arr = links.split(separator)
|
const arr = links.split(separator)
|
||||||
const filtered = arr.filter(v => v.toLowerCase().endsWith('.gif'))
|
const filtered = arr.filter(v => {
|
||||||
const out = filtered.join(separator)
|
const u = v.toLowerCase()
|
||||||
console.log(`<<<${arr}->${out}`)
|
return u.endsWith('.gif')
|
||||||
return out
|
|| u.includes(Constants.externalStatusLink)
|
||||||
|
})
|
||||||
|
return filtered.join(separator)
|
||||||
}
|
}
|
||||||
|
|
||||||
property string responseToMessageWithId: ""
|
property string responseToMessageWithId: ""
|
||||||
|
|
Loading…
Reference in New Issue