item can be reordered, so hasPendingChanges should compare set and not list.
This commit is contained in:
parent
e9b50f604e
commit
37c5ba4b94
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class ChangeRolesPresenter(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val hasPendingChanges = usersWithRole.value != selectedUsers.value
|
val hasPendingChanges = usersWithRole.value.toSet() != selectedUsers.value.toSet()
|
||||||
|
|
||||||
val roomInfo by room.roomInfoFlow.collectAsState()
|
val roomInfo by room.roomInfoFlow.collectAsState()
|
||||||
fun canChangeMemberRole(userId: UserId): Boolean {
|
fun canChangeMemberRole(userId: UserId): Boolean {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue