Auto identify file type as m.image.

This commit is contained in:
Black Hat
2018-07-17 16:18:50 +08:00
parent cf84320794
commit c10c3b1d1d
4 changed files with 32 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ AvatarContainer {
Image {
id: messageImage
source: "image://mxc/" + content.url
source: "image://mxc/" + (content.thumbnail_url ? content.thumbnail_url : content.url)
MouseArea {
anchors.fill: parent