π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix null issue
laurenspriem49c0e32fff49
diff --git a/mobile/lib/models/memories_cache.dart b/mobile/lib/models/memories_cache.dartindex 04939cbff6..2284bb5a57 100644--- a/mobile/lib/models/memories_cache.dart+++ b/mobile/lib/models/memories_cache.dart@@ -117,7 +117,9 @@ class ToShowMemory {json['lastTimeToShow'],json['calculationTime'],personID: json['personID'],- peopleMemoryType: peopleMemoryTypeFromString(json['peopleMemoryType']),+ peopleMemoryType: json['peopleMemoryType'] != null+ ? peopleMemoryTypeFromString(json['peopleMemoryType'])+ : null,location: json['location'] != null? Location(latitude: json['location']['latitude'],@@ -136,7 +138,7 @@ class ToShowMemory {'lastTimeToShow': lastTimeToShow,'calculationTime': calculationTime,'personID': personID,- 'peopleMemoryType': peopleMemoryType.toString().split('.').last,+ 'peopleMemoryType': peopleMemoryType?.toString().split('.').last,'location': location != null? {'latitude': location!.latitude!,diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/lib/services/memories_cache_service.dartindex 6745f314d3..fa3fadb9fa 100644--- a/mobile/lib/services/memories_cache_service.dart+++ b/mobile/lib/services/memories_cache_service.dart@@ -95,7 +95,7 @@ class MemoriesCacheService {Future<String> _getCachePath() async {return (await getApplicationSupportDirectory()).path +- "/cache//test2/memories_cache";+ "/cache//test3/memories_cache";// TODO: lau: remove the test1 directory after testing}