1
0
mirror of https://github.com/vector-im/riotX-android synced 2025-10-05 15:52:47 +02:00

change (power level) : continue handling v12 room

This commit is contained in:
ganfra
2025-07-28 16:49:57 +02:00
parent fd3f7e3a24
commit 2d21c15e3b
16 changed files with 77 additions and 92 deletions

View File

@@ -24,7 +24,6 @@ enum class Role {
Moderator,
User;
companion object {
fun getSuggestedRole(userPowerLevel: UserPowerLevel): Role {
return when {

View File

@@ -59,7 +59,7 @@ class RoomPowerLevels(
* @param userId the user id
* @return the power level
*/
fun getUserRole(userId: String): Role {
fun getSuggestedRole(userId: String): Role {
val value = getUserPowerLevel(userId)
return Role.getSuggestedRole(value)
}