Stop removing the logs dir when clearing cache (#6765)
This commit is contained in:
committed by
GitHub
parent
90ce30d6e7
commit
1ffc09e046
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user