Merge pull request #4718 from element-hq/feature/fga/report_room_enabled_flow

Change (report room) : check if server supports the report room api
This commit is contained in:
ganfra 2025-05-14 17:25:17 +02:00 committed by GitHub
commit 49b885579f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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) {