Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob] Avoid FileUploader cache clear in case of autoLogout

Neeraj Gupta49f96dbea180
diff --git a/mobile/lib/core/configuration.dart b/mobile/lib/core/configuration.dart
index 92bb31e763..1398d9971a 100644
--- a/mobile/lib/core/configuration.dart
+++ b/mobile/lib/core/configuration.dart
@@ -216,8 +216,9 @@ class Configuration {
await UploadLocksDB.instance.clearTable();
await IgnoredFilesService.instance.reset();
await TrashDB.instance.clearTable();
- FileUploader.instance.clearCachedUploadURLs();
if (!autoLogout) {
+ // Following services won't be initialized if it's the case of autoLogout
+ FileUploader.instance.clearCachedUploadURLs();
CollectionsService.instance.clearCache();
FavoritesService.instance.clearCache();
MemoriesService.instance.clearCache();