[mob][photos] Extra check in sorting suggestions

This commit is contained in:
laurenspriem 2024-04-24 10:01:07 +05:30
parent c80208e754
commit 759c8aa404

View file

@ -913,6 +913,11 @@ class ClusterFeedbackService {
// Sort the suggestions based on the distance to the person
for (final suggestion in suggestions) {
if (onlySortBigSuggestions) {
if (suggestion.filesInCluster.length <= 8) {
continue;
}
}
final clusterID = suggestion.clusterIDToMerge;
final faceIDs = suggestion.faceIDsInCluster;
final faceIdToEmbeddingMap = await faceMlDb.getFaceEmbeddingMapForFaces(