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:
commit
ea86072348
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue