π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix showing the same file twice
laurenspriem9528b4ce8dd3
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 685ebd93b0..ee56868162 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@@ -82,13 +82,14 @@ class SimilarImagesService {final similarFilesList = <EnteFile>[];double furthestDistance = 0.0;for (int j = 0; j < otherFileIDs.length; j++) {+ final otherFileID = otherFileIDs[j].toInt();+ if (otherFileID == fileID) continue;final distance = distancesToFiles[j];if (distance > distanceThreshold) {break;} else {furthestDistance = max(furthestDistance, distance);}- final otherFileID = otherFileIDs[j].toInt();if (alreadyUsedFileIDs.contains(otherFileID)) continue;final otherFile = allFileIdsToFile[otherFileID];if (otherFile != null && otherFile.uploadedFileID != null) {