π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
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.dartindex 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);}