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

@ -162,6 +162,11 @@ interface MatrixClient {
fun canDeactivateAccount(): Boolean
suspend fun deactivateAccount(password: String, eraseData: Boolean): Result<Unit>
/**
* Check if the user can report a room.
*/
suspend fun canReportRoom(): Boolean
}
/**