mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
item can be reordered, so hasPendingChanges should compare set and not list.
This commit is contained in:
committed by
Benoit Marty
parent
16e4c93729
commit
7c6aa0655b
+1
-1
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user