Reformat some code
This commit is contained in:
parent
edb2cee361
commit
610faf942d
1 changed files with 3 additions and 6 deletions
|
|
@ -71,14 +71,11 @@ class ConfigureRoomPresenter @Inject constructor(
|
|||
|
||||
val avatarActions by remember(createRoomConfig.value.avatarUri) {
|
||||
derivedStateOf {
|
||||
mutableListOf(
|
||||
listOfNotNull(
|
||||
AvatarAction.TakePhoto,
|
||||
AvatarAction.ChoosePhoto,
|
||||
).apply {
|
||||
if (createRoomConfig.value.avatarUri != null) {
|
||||
add(AvatarAction.Remove)
|
||||
}
|
||||
}.toImmutableList()
|
||||
AvatarAction.Remove.takeIf { createRoomConfig.value.avatarUri != null },
|
||||
).toImmutableList()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue