[mob][fix] Hide archived items from memories

This commit is contained in:
Neeraj Gupta
2024-06-18 15:22:44 +05:30
parent a638f9b4a1
commit ec81300971

View File

@@ -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(