Skip to content

armgit / ente

Public Imported from GitHub
0

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

Clear cached favorite IDs and hashes in clearCache method

AmanRajSinghMouryac11b6cf37312
diff --git a/mobile/apps/photos/lib/services/favorites_service.dart b/mobile/apps/photos/lib/services/favorites_service.dart
index 9a8fbf8b3e..e8ea941509 100644
--- a/mobile/apps/photos/lib/services/favorites_service.dart
+++ b/mobile/apps/photos/lib/services/favorites_service.dart
@@ -82,6 +82,9 @@ class FavoritesService {
void clearCache() {
_cachedFavoritesCollectionID = null;
+ _cachedFavUploadedIDs.clear();
+ _cachedFavFileHases.clear();
+ _cachedPendingLocalIDs.clear();
}
bool isFavoriteCache(EnteFile file, {bool checkOnlyAlbum = false}) {