π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Use epochTime as clusterID
Neeraj Guptaab875ea9a9fd
diff --git a/mobile/lib/services/machine_learning/face_ml/face_clustering/linear_clustering_service.dart b/mobile/lib/services/machine_learning/face_ml/face_clustering/linear_clustering_service.dartindex 5e0855eb47..09dc398891 100644--- a/mobile/lib/services/machine_learning/face_ml/face_clustering/linear_clustering_service.dart+++ b/mobile/lib/services/machine_learning/face_ml/face_clustering/linear_clustering_service.dart@@ -273,7 +273,8 @@ class FaceLinearClustering {// Make sure the first face has a clusterIdfinal int totalFaces = sortedFaceInfos.length;- int clusterID = 1;+ // set current epoch time as clusterID+ int clusterID = DateTime.now().millisecondsSinceEpoch;if (sortedFaceInfos.isNotEmpty) {if (sortedFaceInfos.first.clusterId == null) {sortedFaceInfos.first.clusterId = clusterID;