Downloaded files: include title + ext in filename

This commit is contained in:
miruka
2020-03-09 11:46:08 -04:00
parent bd7b45cc7a
commit 7ee83c5fe4
11 changed files with 45 additions and 13 deletions

View File

@@ -14,6 +14,7 @@ Rectangle {
HRoomAvatar {
id: avatar
roomId: chat.roomId
displayName: chat.roomInfo.display_name
mxc: chat.roomInfo.avatar_url
Layout.alignment: Qt.AlignTop

View File

@@ -55,6 +55,7 @@ HBox {
HRoomAvatar {
id: avatar
roomId: chat.roomId
displayName: chat.roomInfo.display_name
mxc: chat.roomInfo.avatar_url
// enabled: chat.roomInfo.can_set_avatar # put this in "change avatar"

View File

@@ -9,6 +9,7 @@ HMxcImage {
height: fitSize.height
horizontalAlignment: Image.AlignLeft
title: loader.title
animated: loader.singleMediaInfo.media_mime === "image/gif" ||
utils.urlExtension(loader.mediaUrl).toLowerCase() === "gif"
thumbnail: ! animated && loader.thumbnailMxc

View File

@@ -85,6 +85,7 @@ HLoader {
const args = [
loader.mediaUrl,
loader.title,
JSON.parse(loader.singleMediaInfo.media_crypt_dict)
]