π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix bug
laurensprieme824c02d7fb4
diff --git a/mobile/apps/photos/lib/services/machine_learning/similar_images_service.dart b/mobile/apps/photos/lib/services/machine_learning/similar_images_service.dartindex 00abdfd98d..34e3c5dfb7 100644--- a/mobile/apps/photos/lib/services/machine_learning/similar_images_service.dart+++ b/mobile/apps/photos/lib/services/machine_learning/similar_images_service.dart@@ -154,7 +154,7 @@ class SimilarImagesService {final existingGroups = await cachedData.similarFilesList();final cachedFileIDs = cachedData.allCheckedFileIDs;final currentFileIDsSet = currentFileIDs.map((id) => id.toInt()).toSet();- final deletedFiles = currentFileIDsSet.difference(cachedFileIDs);+ final deletedFiles = cachedFileIDs.difference(currentFileIDsSet);// Step 1: Clean up deleted files from existing groupsif (deletedFiles.isNotEmpty) {@@ -192,7 +192,7 @@ class SimilarImagesService {final unassignedNewFilesIndices = <int>{};final unassignedNewFileIDs = <int>{};for (int i = 0; i < keysList.length; i++) {- final newFileID = keysList[i].toInt();+ final newFileID = keysList[i];final newFile = allFileIdsToFile[newFileID];if (newFile == null) continue;final similarFileIDs = vectorKeys[i];