Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] dont run timeline generation for persons if on local gallery mode

aspizu4c859cb3e678
diff --git a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
index 249e212e1d..10243718c0 100644
--- a/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
+++ b/mobile/apps/photos/lib/services/memory_lane/memory_lane_service.dart
@@ -100,17 +100,20 @@ class MemoryLaneService {
if (!isFeatureEnabled) {
return;
}
- if (!PersonService.isInitialized) {
- _logger.warning("Full recompute skipped: PersonService unavailable");
- return;
- }
- final persons = await PersonService.instance.getPersons();
- for (final person in persons) {
- if (person.data.isIgnored) {
- await _invalidateTimeline(person.remoteID);
- continue;
+ final List<PersonEntity> persons = [];
+ if (!isLocalGalleryMode) {
+ if (!PersonService.isInitialized) {
+ _logger.warning("Full recompute skipped: PersonService unavailable");
+ return;
+ }
+ persons.addAll(await PersonService.instance.getPersons());
+ for (final person in persons) {
+ if (person.data.isIgnored) {
+ await _invalidateTimeline(person.remoteID);
+ continue;
+ }
+ schedulePersonRecompute(person.remoteID, force: force);
}
- schedulePersonRecompute(person.remoteID, force: force);
}
if (flagService.internalUser) {
final assigned = <String>{};