π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] remove cache purge on sync done, which is already done in init
Priyanshu Dangared6395b3676eb
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 f6c6ed6c9c..67673d5d20 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@@ -338,19 +338,10 @@ class MemoryLaneService {await _refreshReadyPersonIds();}- Future<void> _revokeTimeline(String id) async {- _pendingRequests[id]?.isRevoked = true;- final didRemove = await _cacheService.removeTimeline(id);- if (didRemove) {- await _refreshReadyPersonIds();- }- }-void _handlePeopleChange(PeopleChangedEvent event) {if (!isFeatureEnabled) {return;}- unawaited(_cleanupAssignedClusterTimelines(event));if (event.type == PeopleEventType.removedFilesFromCluster ||event.type == PeopleEventType.removedFaceFromCluster) {unawaited(_processClusterChange(event));@@ -907,37 +898,6 @@ class MemoryLaneService {files.map((file) => MapEntry(localIdToId[file.localID]!, file)),);}-- Future<void> _cleanupAssignedClusterTimelines(- PeopleChangedEvent event,- ) async {- try {- final Set<String> clusterIDs = {};- if (event.type == PeopleEventType.addedClusterToPerson) {- clusterIDs.add(event.source);- }- clusterIDs.addAll(event.newClusterIDs ?? {});- if (event.person case final person?) {- clusterIDs.addAll(person.data.assigned.map((cluster) => cluster.id));- }- _topNClusters.removeAll(clusterIDs);- if (event.type == PeopleEventType.syncDone) {- final person = await PersonService.instance.getPersons();- clusterIDs.addAll(- person.expand((p) => p.data.assigned).map((c) => c.id),- );- }- _topNClusters.removeAll(clusterIDs);- if (clusterIDs.isEmpty) {- return;- }- for (final clusterID in clusterIDs) {- await _revokeTimeline(clusterID);- }- } catch (e, s) {- _logger.severe("_cleanupAssignedClusterTimelines failed", e, s);- }- }}class _TimelineRequest {