Skip to content

armgit / ente

Public Imported from GitHub
0

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

Keep local files when hiding shared items

Neeraj Guptad57b56b26c0f
diff --git a/mobile/apps/photos/lib/db/files_db.dart b/mobile/apps/photos/lib/db/files_db.dart
index d090ae3caa..5451b1043f 100644
--- a/mobile/apps/photos/lib/db/files_db.dart
+++ b/mobile/apps/photos/lib/db/files_db.dart
@@ -698,7 +698,7 @@ class FilesDB with SqlDbBase {
args.add(visibility);
if (filterOptions?.ignoreSharedItems ?? false) {
- subQueries.add(' AND $columnOwnerID = ?');
+ subQueries.add(' AND ($columnOwnerID IS NULL OR $columnOwnerID = ?)');
args.add(ownerID);
}
@@ -743,7 +743,7 @@ class FilesDB with SqlDbBase {
);
if (filterOptions.ignoreSharedItems) {
- subQueries.add(' AND $columnOwnerID = ?');
+ subQueries.add(' AND ($columnOwnerID IS NULL OR $columnOwnerID = ?)');
args.add(ownerID);
}