Add developer option to optimize the SDK DBs

This commit is contained in:
Jorge Martín 2025-11-28 07:58:06 +01:00 committed by Jorge Martin Espinosa
parent 0c60b75709
commit 5d6aa1fcfd
6 changed files with 49 additions and 0 deletions

View file

@ -726,6 +726,12 @@ class RustMatrixClient(
}
}
override suspend fun vacuumStores(): Result<Unit> = withContext(sessionDispatcher) {
runCatchingExceptions {
innerClient.optimizeStores()
}
}
private suspend fun getCacheSize(
includeCryptoDb: Boolean = false,
): Long = withContext(sessionDispatcher) {