Stop removing the logs dir when clearing cache (#6765)
This commit is contained in:
parent
90ce30d6e7
commit
1ffc09e046
1 changed files with 6 additions and 1 deletions
|
|
@ -55,7 +55,12 @@ class DefaultClearCacheUseCase(
|
|||
// Clear OkHttp cache
|
||||
okHttpClient().cache?.delete()
|
||||
// Clear app cache
|
||||
context.cacheDir.deleteRecursively()
|
||||
context.cacheDir?.listFiles {
|
||||
// But keep the logs
|
||||
it.name != "logs"
|
||||
}?.onEach {
|
||||
it.deleteRecursively()
|
||||
}
|
||||
// Clear some settings
|
||||
seenInvitesStore.clear()
|
||||
// Ensure any error will be displayed again
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue