Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: remove async from addFiles method

Prateek Sunal27d3acb192d7
diff --git a/mobile/apps/photos/lib/models/collection/smart_album_config.dart b/mobile/apps/photos/lib/models/collection/smart_album_config.dart
index d5a4f74e88..da4e1c358e 100644
--- a/mobile/apps/photos/lib/models/collection/smart_album_config.dart
+++ b/mobile/apps/photos/lib/models/collection/smart_album_config.dart
@@ -43,11 +43,7 @@ class SmartAlbumConfig {
);
}
- Future<SmartAlbumConfig> addFiles(
- String personId,
- int updatedAt,
- Set<int> fileId,
- ) async {
+ SmartAlbumConfig addFiles(String personId, int updatedAt, Set<int> fileId) {
if (!infoMap.containsKey(personId)) {
return this;
}
@@ -57,6 +53,7 @@ class SmartAlbumConfig {
updatedAt: updatedAt,
addedFiles: newInfoMap[personId]!.addedFiles.union(fileId),
);
+
return SmartAlbumConfig(
id: id,
collectionId: collectionId,