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