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:
@@ -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