change (report room) : use client.isReportRoomApiSupported instead of hardcoded value

This commit is contained in:
ganfra 2025-05-13 16:20:37 +02:00
parent e6b1c196d6
commit 21f75db4bb
7 changed files with 25 additions and 9 deletions

View file

@ -666,6 +666,12 @@ class RustMatrixClient(
}
}
override suspend fun canReportRoom(): Boolean = withContext(sessionDispatcher) {
runCatching {
innerClient.isReportRoomApiSupported()
}.getOrDefault(false)
}
private suspend fun File.getCacheSize(
includeCryptoDb: Boolean = false,
): Long = withContext(sessionDispatcher) {