[mob][photos] Remove cluster bug (#4714)

## Description

## Tests
This commit is contained in:
Laurens Priem
2025-01-14 07:33:22 +01:00
committed by GitHub

View File

@@ -196,7 +196,7 @@ class PersonService {
}
personData.rejectedFaceIDs ??= [];
personData.rejectedFaceIDs!.addAll(clusterInfo.faces);
personData.assigned!.removeWhere((element) => element.id != clusterID);
personData.assigned!.removeWhere((element) => element.id == clusterID);
await entityService.addOrUpdate(
EntityType.cgroup,
personData.toJson(),