feat: check thumbnail size
This commit is contained in:
parent
38728ed153
commit
97ca608f60
|
|
@ -758,6 +758,10 @@ class Room {
|
||||||
compute: client.runInBackground,
|
compute: client.runInBackground,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (thumbnail != null && file.size < thumbnail.size) {
|
||||||
|
thumbnail = null; // in this case, the thumbnail is not usefull
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MatrixFile? uploadThumbnail =
|
MatrixFile? uploadThumbnail =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue