Show blurhashes for image events

This commit is contained in:
Tobias Fella
2021-08-21 00:19:07 +02:00
parent dada3e300b
commit 046e823d1b
10 changed files with 291 additions and 8 deletions

View File

@@ -457,7 +457,7 @@ Kirigami.ScrollablePage {
acceptedButtons: Qt.LeftButton
onLongPressed: openFileContext(author, model.display, eventId, toolTip, progressInfo, parent)
onTapped: {
fullScreenImage.createObject(parent, {"filename": eventId, "localPath": currentRoom.urlToDownload(eventId)}).showFullScreen()
fullScreenImage.createObject(parent, {"filename": eventId, "localPath": currentRoom.urlToDownload(eventId), "blurhash": model.content.info["xyz.amorgan.blurhash"], "imageWidth": content.info.w, "imageHeight": content.info.h}).showFullScreen()
}
}
}