Delete media caches on startup (#1807)

Clear media caches on app startup
This commit is contained in:
Marco Romano
2023-11-20 10:48:11 +01:00
committed by GitHub
parent eeb9b30d80
commit 28f4ccdf9f
9 changed files with 282 additions and 1 deletions
@@ -89,7 +89,6 @@ class DefaultVoiceMessageMediaRepo @AssistedInject constructor(
source = mediaSource,
mimeType = mimeType,
body = body,
useCache = false,
).mapCatching {
it.use { mediaFile ->
val dest = cachedFile.apply { parentFile?.mkdirs() }