Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(files_db): add conditions for file size and duration

Prateek Sunal106338508dd6
diff --git a/mobile/lib/db/files_db.dart b/mobile/lib/db/files_db.dart
index c43eec8d21..276ef2bb98 100644
--- a/mobile/lib/db/files_db.dart
+++ b/mobile/lib/db/files_db.dart
@@ -1685,6 +1685,8 @@ class FilesDB with SqlDbBase {
AND $columnUploadedFileID != -1
AND $columnOwnerID = $userID
AND $columnLocalID IS NOT NULL
+ AND ($columnFileSize IS NULL OR $columnFileSize <= 524288000)
+ AND ($columnDuration IS NULL OR $columnDuration <= 1)
ORDER BY $columnCreationTime DESC
''',
[getInt(fileType), beginDate.microsecondsSinceEpoch],