item can be reordered, so hasPendingChanges should compare set and not list.
This commit is contained in:
parent
16e4c93729
commit
7c6aa0655b
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()
|
||||
fun canChangeMemberRole(userId: UserId): Boolean {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue