Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][fix] Hide archived items from memories

Neeraj Guptaec813009716c
diff --git a/mobile/lib/db/files_db.dart b/mobile/lib/db/files_db.dart
index c6ba617e0e..e23a5c762b 100644
--- a/mobile/lib/db/files_db.dart
+++ b/mobile/lib/db/files_db.dart
@@ -881,11 +881,12 @@ class FilesDB {
")";
if (index != durations.length - 1) {
whereClause += " OR ";
- } else if (visibility != null) {
- whereClause += ' AND $columnMMdVisibility = $visibility';
}
}
whereClause += ")";
+ if (visibility != null) {
+ whereClause += ' AND $columnMMdVisibility = $visibility';
+ }
final query =
'SELECT * FROM $filesTable WHERE $whereClause ORDER BY $columnCreationTime $order';
final results = await db.getAll(