Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add clarifying comment for retainAll operation

Prateek Sunal50b9c5876ce4
diff --git a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
index 345fd32d24..b179103bc8 100644
--- a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
+++ b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart
@@ -394,6 +394,7 @@ class RemoteSyncService {
// Filter by only-new using pre-fetched set
if (newerLocalIDs != null) {
+ // Keep only files that are in newerLocalIDs (removes old files)
localIDsToSync.retainAll(newerLocalIDs);
}