quality: fix more tests

This commit is contained in:
ganfra 2025-11-06 13:47:52 +01:00
parent fbe7476ba7
commit 6db952c7df
4 changed files with 28 additions and 22 deletions

View file

@ -104,7 +104,6 @@ class ChangeRolesPresenter(
val roomInfo by room.roomInfoFlow.collectAsState()
fun canChangeMemberRole(userId: UserId): Boolean {
// This is used to group the
val currentUserRole = roomInfo.roleOf(room.sessionId)
val otherUserRole = roomInfo.roleOf(userId)
return currentUserRole.powerLevel > otherUserRole.powerLevel