feat: check thumbnail size

This commit is contained in:
h.carnot 2022-04-06 17:43:31 +02:00
parent 38728ed153
commit 97ca608f60
1 changed files with 4 additions and 0 deletions

View File

@ -758,6 +758,10 @@ class Room {
compute: client.runInBackground,
);
}
if (thumbnail != null && file.size < thumbnail.size) {
thumbnail = null; // in this case, the thumbnail is not usefull
}
}
MatrixFile? uploadThumbnail =