Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: duplication

Prateek Sunal3c1bd34058f8
diff --git a/mobile/apps/photos/lib/services/smart_albums_service.dart b/mobile/apps/photos/lib/services/smart_albums_service.dart
index b41e720e4f..c1f674e48f 100644
--- a/mobile/apps/photos/lib/services/smart_albums_service.dart
+++ b/mobile/apps/photos/lib/services/smart_albums_service.dart
@@ -149,7 +149,11 @@ class SmartAlbumsService {
try {
await CollectionsService.instance.addOrCopyToCollection(
collectionId,
- toBeSynced.entries.map((e) => e.value).expand((e) => e).toList(),
+ toBeSynced.entries
+ .map((e) => e.value)
+ .expand((e) => e)
+ .toSet()
+ .toList(),
toCopy: false,
);
newConfig = newConfig.addFiles(