Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Keep moved files in memories

AmanRajSinghMouryac6c118107d85
diff --git a/mobile/apps/photos/lib/services/memories_cache_service.dart b/mobile/apps/photos/lib/services/memories_cache_service.dart
index 48a1324714..b251d9b58a 100644
--- a/mobile/apps/photos/lib/services/memories_cache_service.dart
+++ b/mobile/apps/photos/lib/services/memories_cache_service.dart
@@ -94,7 +94,8 @@ class MemoriesCacheService {
Bus.instance
.on<FilesUpdatedEvent>()
.where((event) {
- return _shouldInvalidateForDeletedFiles(event.type);
+ return _shouldInvalidateForDeletedFiles(event.type) &&
+ event.source != "moveFrom";
})
.listen((event) async {
await _invalidateDeletedFiles(event.updatedFiles);