Create AppMigration09 to remove the cached well-known config from the SDK (#6026)

This value was most likely was incorrectly cached due to a previous issue in the SDK
This commit is contained in:
Jorge Martin Espinosa 2026-01-16 16:03:49 +01:00 committed by GitHub
parent 1070b55bb9
commit a464e29570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 104 additions and 0 deletions

View file

@ -791,6 +791,13 @@ class RustMatrixClient(
}
}
override suspend fun resetWellKnownConfig(): Result<Unit> {
return runCatchingExceptions {
Timber.d("Resetting well-known config for session $sessionId")
innerClient.resetWellKnown()
}
}
private suspend fun getCacheSize(
includeCryptoDb: Boolean = false,
): Long = withContext(sessionDispatcher) {