[mob][photos] Don't show hidden clusters in clusters page

This commit is contained in:
laurenspriem 2024-05-03 12:25:14 +05:30
parent 1ab42640d9
commit 267b3669f2

View file

@ -787,6 +787,7 @@ class SearchService {
continue;
}
final PersonEntity p = personIdToPerson[personID]!;
if (p.data.isHidden) continue;
facesResult.add(
GenericSearchResult(
ResultType.faces,
@ -825,7 +826,8 @@ class SearchService {
"Cluster $clusterId should not have person id ${clusterIDToPersonID[clusterId]}",
);
}
if (files.length < kMinimumClusterSizeSearchResult && sortedClusterIds.length > 3) {
if (files.length < kMinimumClusterSizeSearchResult &&
sortedClusterIds.length > 3) {
continue;
}
facesResult.add(