TempInfo Messageeventmodel

Further improvements to the handling of `mediaInfo` in `messageeventmodel`.

`blurhash` and `thumbnailInfo` are now replaced with a single `tempInfo` object that contains a single temp source. The priority is thumbnail > `blurhash` > empty if none exist.

Fixes network/neochat#235
This commit is contained in:
James Graham
2023-05-08 07:50:20 +00:00
committed by Tobias Fella
parent 20443ba59f
commit b82d3ab5ad
4 changed files with 29 additions and 12 deletions

View File

@@ -74,7 +74,7 @@ TimelineContainer {
Image {
anchors.fill: parent
source: model.mediaInfo.blurhash
source: model.mediaInfo.tempInfo.source
visible: parent.status !== Image.Ready
}