Skip to content

Commit

Permalink
[mob] Avoid FileUploader cache clear in case of autoLogout (ente-io#2335
Browse files Browse the repository at this point in the history
)

## Description

## Tests
  • Loading branch information
ua741 authored Jul 1, 2024
2 parents 6544ed3 + 49f96db commit a60c50f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobile/lib/core/configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a60c50f

Please sign in to comment.