Ver código fonte

[mob][photos] Delete people and their mapping

laurenspriem 1 ano atrás
pai
commit
115f1bd42e

+ 1 - 1
mobile/lib/services/machine_learning/face_ml/person/person_service.dart

@@ -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) {

+ 2 - 2
mobile/lib/ui/settings/debug/face_debug_section_widget.dart

@@ -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 {