Skip to content
Snippets Groups Projects
Verified Commit cf31fff5 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix blurry thumbnails AGAIN

parent 8effdbc4
No related branches found
No related tags found
No related merge requests found
Pipeline #2240 passed
......@@ -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)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment