Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix ignored persons cache issue

laurenspriemdcb963133da7
diff --git a/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart b/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart
index 4237929c5b..6f41956fa6 100644
--- a/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart
+++ b/mobile/apps/photos/lib/services/machine_learning/face_ml/person/person_service.dart
@@ -689,6 +689,8 @@ class PersonService {
}) async {
final result = await entityService.addOrUpdate(type, jsonMap, id: id);
_lastCacheRefreshTime = 0; // Invalidate cache
+ _cachedPersonsFuture =
+ null; // Force refresh even if last sync time unchanged
return result;
}