diff options
-rw-r--r-- | src/MxcImageProvider.cpp | 6 |
1 files 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; } |