mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Reformat some code
This commit is contained in:
+3
-6
@@ -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()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user