Merge branch 'henri/check-thumbnail-size' into 'main'

feat: check thumbnail size

Closes #274

See merge request famedly/company/frontend/famedlysdk!1003
This commit is contained in:
Krille Fear 2022-04-07 06:06:32 +00:00
commit ea86072348
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 =