move instruction
This commit is contained in:
@@ -56,7 +56,6 @@ class ConfigureRoomPresenter @Inject constructor(
|
||||
val createRoomAction: MutableState<Async<RoomId>> = remember { mutableStateOf(Async.Uninitialized) }
|
||||
|
||||
fun createRoom(config: CreateRoomConfig) {
|
||||
createRoomAction.value = Async.Uninitialized
|
||||
localCoroutineScope.createRoom(config, createRoomAction)
|
||||
}
|
||||
|
||||
@@ -81,6 +80,7 @@ class ConfigureRoomPresenter @Inject constructor(
|
||||
}
|
||||
|
||||
private fun CoroutineScope.createRoom(config: CreateRoomConfig, createRoomAction: MutableState<Async<RoomId>>) = launch {
|
||||
createRoomAction.value = Async.Uninitialized
|
||||
suspend {
|
||||
val params = CreateRoomParameters(
|
||||
name = config.roomName,
|
||||
|
||||
Reference in New Issue
Block a user