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 cc721b6c87
commit c5dcd419ce
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)