mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix display of images, that can't be thumbnailed
This commit is contained in:
parent
30791f7890
commit
07b5f0805f
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue