Delete media caches on startup (#1807)
Clear media caches on app startup
This commit is contained in:
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() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue