π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Hide smaller clusters only when there are more than 2 clusters
Neeraj Guptaf261ee71848b
diff --git a/mobile/ios/Podfile.lock b/mobile/ios/Podfile.lockindex 233e4a853f..7d1c2d5b5a 100644--- a/mobile/ios/Podfile.lock+++ b/mobile/ios/Podfile.lock@@ -496,4 +496,4 @@ SPEC CHECKSUMS:PODFILE CHECKSUM: c1a8f198a245ed1f10e40b617efdb129b021b225-COCOAPODS: 1.15.2+COCOAPODS: 1.14.3diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dartindex 75c516481d..a482f500cf 100644--- a/mobile/lib/face/db.dart+++ b/mobile/lib/face/db.dart@@ -409,6 +409,9 @@ class FaceMLDataDB {}offset += batchSize;}+ _logger.info(+ 'done reading face embeddings ${result.length}',+ );return result;}@@ -493,7 +496,8 @@ class FaceMLDataDB {}Future<void> bulkAssignClusterToPersonID(- Map<int, String> clusterToPersonID,) async {+ Map<int, String> clusterToPersonID,+ ) async {final db = await instance.database;final batch = db.batch();for (final entry in clusterToPersonID.entries) {@@ -505,6 +509,7 @@ class FaceMLDataDB {personIdColumn: personID,cluserIDColumn: clusterID,},+ conflictAlgorithm: ConflictAlgorithm.replace,);}await batch.commit(noResult: true);diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex 7c7544de28..375fc4d847 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -823,7 +823,7 @@ class SearchService {throw Exception("Cluster $clusterId should not have person id ${clusterIDToPersonID[clusterId]}");}- if (files.length < 3) {+ if (files.length < 3 && sortedClusterIds.length > 3) {continue;}facesResult.add(