π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Fix face cluster suggestion
Neeraj Guptac85692360c4d
diff --git a/mobile/lib/face/db.dart b/mobile/lib/face/db.dartindex e3b2d56c5c..502f48dee4 100644--- a/mobile/lib/face/db.dart+++ b/mobile/lib/face/db.dart@@ -545,13 +545,14 @@ class FaceMLDataDB {final db = instance.database;return db.then((db) async {final List<Map<String, dynamic>> maps = await db.rawQuery(- 'SELECT $cluserIDColumn, $fileIDColumn FROM $facesTable '- 'WHERE $cluserIDColumn IN (${clusterIDs.join(",")})',+ 'SELECT $fcClusterID, $fcFaceId FROM $faceClustersTable '+ 'WHERE $fcClusterID IN (${clusterIDs.join(",")})',);final Map<int, Set<int>> result = {};for (final map in maps) {- final clusterID = map[cluserIDColumn] as int;- final fileID = map[fileIDColumn] as int;+ final clusterID = map[fcClusterID] as int;+ final faceId = map[fcFaceId] as String;+ final fileID = int.parse(faceId.split("_").first);result[fileID] = (result[fileID] ?? {})..add(clusterID);}return result;diff --git a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart b/mobile/lib/ui/settings/debug/face_debug_section_widget.dartindex 5a76320c32..937201be90 100644--- a/mobile/lib/ui/settings/debug/face_debug_section_widget.dart+++ b/mobile/lib/ui/settings/debug/face_debug_section_widget.dart@@ -186,6 +186,7 @@ class _FaceDebugSectionWidgetState extends State<FaceDebugSectionWidget> {pressedColor: getEnteColorScheme(context).fillFaint,trailingIcon: Icons.chevron_right_outlined,trailingIconIsMuted: true,+ alwaysShowSuccessState: true,onTap: () async {await showChoiceDialog(context,