π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Don't show people results until clustering is mostly done
laurenspriemaf88756b5d24
diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex 657727f9a9..c9c4ddf1d6 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -739,6 +739,15 @@ class SearchService {Future<List<GenericSearchResult>> getAllFace(int? limit) async {try {+ // Don't return anything if clustering is not nearly complete yet+ final foundFaces = await FaceMLDataDB.instance.getTotalFaceCount();+ final clusteredFaces =+ await FaceMLDataDB.instance.getClusteredFaceCount();+ final clusteringDoneRatio = clusteredFaces / foundFaces;+ if (clusteringDoneRatio < 0.9) {+ return [];+ }+debugPrint("getting faces");final Map<int, Set<int>> fileIdToClusterID =await FaceMLDataDB.instance.getFileIdToClusterIds();