change(roles and permissions): improve the flow
This commit is contained in:
parent
8b60c8309c
commit
42b8dc33f2
13 changed files with 93 additions and 85 deletions
|
|
@ -157,10 +157,12 @@ class RoomDetailsFlowNode(
|
|||
changeRoomMemberRolesNode: ChangeRoomMemberRolesEntryPoint.NodeProxy,
|
||||
->
|
||||
commonLifecycle.coroutineScope.launch {
|
||||
changeRoomMemberRolesNode.waitForRoleChanged()
|
||||
val isNewOwnerSelected = changeRoomMemberRolesNode.waitForCompletion()
|
||||
withContext(NonCancellable) {
|
||||
backstack.pop()
|
||||
roomDetailsNode.onNewOwnersSelected()
|
||||
if (isNewOwnerSelected) {
|
||||
roomDetailsNode.onNewOwnersSelected()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue