MatrixClient: RoomMessageMedia support

This commit is contained in:
miruka
2019-09-13 22:34:20 -04:00
parent a2ab7b3090
commit a5095274ba
5 changed files with 45 additions and 26 deletions

View File

@@ -148,16 +148,14 @@ Row {
Repeater {
id: previewLinksRepeater
model: previewLinks
model: eventDelegate.links
HLoader {
Component.onCompleted: {
if (modelData[0] == "image") {
setSource(
"EventImage.qml",
{ source: modelData[1] },
)
}
setSource(
"EventImage.qml",
{ source: modelData },
)
}
}
}

View File

@@ -47,7 +47,7 @@ Column {
readonly property bool unselectableNameLine:
hideNameLine && ! (onRight && ! combine)
readonly property var previewLinks: model.preview_links
readonly property var links: model.links
function json() {