From 07b5f0805f56341c73c22a61e2bf6f0373ff0ff4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 8 Dec 2021 01:46:14 +0100 Subject: [PATCH] Fix display of images, that can't be thumbnailed --- src/MxcImageProvider.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MxcImageProvider.cpp b/src/MxcImageProvider.cpp index 35bc0586..f77f2b0a 100644 --- a/src/MxcImageProvider.cpp +++ b/src/MxcImageProvider.cpp @@ -136,10 +136,10 @@ MxcImageProvider::download(const QString &id, opts.method = crop ? "crop" : "scale"; http::client()->get_thumbnail( opts, - [fileInfo, requestedSize, radius, then, id](const std::string &res, - mtx::http::RequestErr err) { + [fileInfo, requestedSize, radius, then, id, crop](const std::string &res, + mtx::http::RequestErr err) { if (err || res.empty()) { - then(id, QSize(), {}, ""); + download(id, QSize(), then, crop, radius); return; }