mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix blurry thumbnails AGAIN
This commit is contained in:
parent
8effdbc447
commit
cf31fff5fe
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ MxcImageProvider::download(const QString &id,
|
|||
if (temp != infos.end())
|
||||
encryptionInfo = *temp;
|
||||
|
||||
if (requestedSize.isValid() && !encryptionInfo) {
|
||||
if (requestedSize.isValid() &&
|
||||
!encryptionInfo
|
||||
// Protect against synapse not following the spec:
|
||||
// https://github.com/matrix-org/synapse/issues/5302
|
||||
&& requestedSize.height() <= 600 && requestedSize.width() <= 800) {
|
||||
QString fileName = QString("%1_%2x%3_%4_radius%5")
|
||||
.arg(QString::fromUtf8(id.toUtf8().toBase64(
|
||||
QByteArray::Base64UrlEncoding | QByteArray::OmitTrailingEquals)))
|
||||
|
|
Loading…
Reference in a new issue