[mob][photos] Delete people and their mapping

This commit is contained in:
laurenspriem 2024-05-07 11:59:25 +05:30
parent 68be7f69d8
commit 115f1bd42e
2 changed files with 3 additions and 3 deletions

View file

@ -228,7 +228,7 @@ class PersonService {
personData.logStats();
}
Future<void> deletePerson(String personID, {bool onlyMapping = true}) async {
Future<void> deletePerson(String personID, {bool onlyMapping = false}) async {
if (onlyMapping) {
final PersonEntity? entity = await getPerson(personID);
if (entity == null) {

View file

@ -259,7 +259,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
sectionOptionSpacing,
MenuItemWidget(
captionedTextWidget: const CaptionedTextWidget(
title: "Drop People to clusterMapping",
title: "Drop People and clusterMapping",
),
pressedColor: getEnteColorScheme(context).fillFaint,
trailingIcon: Icons.chevron_right_outlined,
@ -269,7 +269,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {
context,
title: "Are you sure?",
body:
"This won't delete the people, but will remove the mapping of people to clusters",
"This will delete the people and all respective mappings of people to clusters",
firstButtonLabel: "Yes, confirm",
firstButtonOnTap: () async {
try {