Display banned users in room member list (#2415)

* Display banned users in room member list

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
Jorge Martin Espinosa 2024-02-20 10:07:06 +01:00 committed by GitHub
parent 9669f84766
commit e68139bf46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 197 additions and 31 deletions

View file

@ -319,6 +319,12 @@ class RustMatrixRoom(
}
}
override suspend fun canUserBan(userId: UserId): Result<Boolean> {
return runCatching {
innerRoom.canUserBan(userId.value)
}
}
override suspend fun canUserRedactOwn(userId: UserId): Result<Boolean> {
return runCatching {
innerRoom.canUserRedactOwn(userId.value)