Remove all Backend "get_any_client"-using methods
thumbnail() and download() were remaining. Use a direct and carefully chosen MatrixClient's methods instead to avoid problems mentioned in the previous commit 7502c1.
This commit is contained in:
@@ -94,6 +94,7 @@ HRowLayout {
|
||||
|
||||
HUserAvatar {
|
||||
id: avatar
|
||||
clientUserId: chat.userId
|
||||
userId: model.sender_id
|
||||
displayName: model.sender_name
|
||||
mxc: model.sender_avatar
|
||||
|
@@ -60,6 +60,7 @@ HMxcImage {
|
||||
height: fitSize.height
|
||||
horizontalAlignment: Image.AlignLeft
|
||||
|
||||
clientUserId: chat.userId
|
||||
title: thumbnail ? loader.thumbnailTitle : loader.title
|
||||
animated: eventList.isAnimated(loader.singleMediaInfo)
|
||||
thumbnail: ! animated && loader.thumbnailMxc
|
||||
|
@@ -416,6 +416,7 @@ Rectangle {
|
||||
window.makePopup(
|
||||
"Popups/ImageViewerPopup/ImageViewerPopup.qml",
|
||||
{
|
||||
clientUserId: chat.userId,
|
||||
thumbnailTitle: getThumbnailTitle(event),
|
||||
thumbnailMxc: event.thumbnail_url,
|
||||
thumbnailPath: eventList.thumbnailCachedPaths[event.id],
|
||||
@@ -459,6 +460,7 @@ Rectangle {
|
||||
print("Downloading " + event.media_url + " ...")
|
||||
|
||||
const args = [
|
||||
chat.userId,
|
||||
event.media_url,
|
||||
event.media_title,
|
||||
JSON.parse(event.media_crypt_dict),
|
||||
|
Reference in New Issue
Block a user