π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] return safely when memory lane is disabled
Priyanshu Dangare500d5fd21dc7
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.dartindex 677650ef33..e17464a37a 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@@ -156,7 +156,7 @@ class MemoryLaneService {}Future<MemoryLanePersonTimeline?> getTimeline(String personId) async {- if (!hasGrantedMLConsent) throw StateError("Memory Lane is disabled");+ if (!hasGrantedMLConsent) return null;final timeline = await _cacheService.getTimeline(personId);if (timeline == null || timeline.entries.isEmpty) {return timeline;@@ -192,7 +192,7 @@ class MemoryLaneService {}bool hasReadyTimelineSync(String personId) {- if (!hasGrantedMLConsent) throw StateError("Memory Lane is disabled");+ if (!hasGrantedMLConsent) return false;return readyPersonIds.value.contains(personId);}