diff --git a/lib/src/room.dart b/lib/src/room.dart index 6f4da2b6..ad1f0daf 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -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 =