Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Only recompute memories on new photos when known empty

laurenspriem011c81616db0
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 788e248630..df5ee1c61c 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -112,9 +112,8 @@ class MemoriesCacheService {
);
}
- final shouldQueueUpdate =
- _cachedMemories == null || _cachedMemories!.isEmpty;
- if (!shouldQueueUpdate) {
+ final hasLoadedEmptyMemories = _cachedMemories?.isEmpty ?? false;
+ if (!hasLoadedEmptyMemories) {
return;
}
queueUpdateCache();