π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Respect only-new backup cutoff
Neeraj Gupta8d97404b172f
diff --git a/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart b/mobile/apps/photos/lib/ui/home/home_gallery_widget.dartindex 22d1dd6ab7..8d88d7b515 100644--- a/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart+++ b/mobile/apps/photos/lib/ui/home/home_gallery_widget.dart@@ -88,13 +88,19 @@ class _HomeGalleryWidgetState extends State<HomeGalleryWidget> {return null;}if (!backupPreferenceService.hasSelectedAllFoldersForBackup) {- final localIDs = files.map((file) => file.localID!).toSet();+ final onlyNewSince = backupPreferenceService.onlyNewSinceEpoch;+ if (onlyNewSince != null) {+ candidates = candidates+ .where((file) => file.creationTime! >= onlyNewSince)+ .toList(growable: false);+ }+ final localIDs = candidates.map((file) => file.localID!).toSet();final selectedLocalIDs = await FilesDB.instance.getLocalIDsInBackupFolders(localIDs,filterOptions.ignoredCollectionIDs ?? {},);- candidates = files+ candidates = candidates.where((file) => selectedLocalIDs.contains(file.localID)).toList(growable: false);}