Fix display of images, that can't be thumbnailed

This commit is contained in:
Nicolas Werner 2021-12-08 01:46:14 +01:00
parent 30791f7890
commit 07b5f0805f
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -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,
[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;
}