From 49f96dbea180f716a6bca392155f537851f45051 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 1 Jul 2024 14:43:53 +0530 Subject: [PATCH] [mob] Avoid FileUploader cache clear in case of autoLogout --- mobile/lib/core/configuration.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();