From 106338508dd6077ae6307e4edca321dba97a74fc Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Sat, 26 Apr 2025 02:11:46 +0530 Subject: [PATCH] fix(files_db): add conditions for file size and duration --- mobile/lib/db/files_db.dart | 2 ++ 1 file changed, 2 insertions(+) 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],