Browse Source

Make sure that the file fetched for memories is not deleted

Vishnu Mohandas 5 years ago
parent
commit
e6b4619c52
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/db/files_db.dart

+ 2 - 1
lib/db/files_db.dart

@@ -132,7 +132,8 @@ class FilesDB {
     final db = await instance.database;
     final db = await instance.database;
     final results = await db.query(
     final results = await db.query(
       table,
       table,
-      where: '$columnCreationTime >= ? AND $columnCreationTime <= ?',
+      where:
+          '$columnCreationTime > ? AND $columnCreationTime < ? AND $columnIsDeleted = 0',
       whereArgs: [startCreationTime, endCreationTime],
       whereArgs: [startCreationTime, endCreationTime],
       orderBy: '$columnCreationTime DESC',
       orderBy: '$columnCreationTime DESC',
     );
     );