From ec813009716c391b35bf90c2ff0a01c8ef3e6707 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Tue, 18 Jun 2024 15:22:44 +0530 Subject: [PATCH] [mob][fix] Hide archived items from memories --- mobile/lib/db/files_db.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(