Fix API break: use new methods canUserRedactOwn and canUserRedactOther.

This commit is contained in:
Benoit Marty 2024-01-23 12:20:07 +01:00 committed by Benoit Marty
parent ce7d77059c
commit f844399025
13 changed files with 286 additions and 49 deletions

View file

@ -335,9 +335,15 @@ class RustMatrixRoom(
}
}
override suspend fun canUserRedact(userId: UserId): Result<Boolean> {
override suspend fun canUserRedactOwn(userId: UserId): Result<Boolean> {
return runCatching {
innerRoom.canUserRedact(userId.value)
innerRoom.canUserRedactOwn(userId.value)
}
}
override suspend fun canUserRedactOther(userId: UserId): Result<Boolean> {
return runCatching {
innerRoom.canUserRedactOther(userId.value)
}
}