This commit is contained in:
Evgeny @ SimpleX Chat
2026-07-14 19:17:39 +00:00
parent fb2bef00dd
commit 7787e6119c
@@ -40,7 +40,7 @@ fun UserProfileView(chatModel: ChatModel, close: () -> Unit) {
var profile by remember { mutableStateOf(user.profile.toProfile()) }
UserProfileLayout(
profile = profile,
close,
close = close,
saveProfile = { displayName, fullName, shortDescr, description, image ->
withBGApi {
val updatedProfile = profile.copy(displayName = displayName.trim(), fullName = fullName.trim(), shortDescr = shortDescr.trim().ifEmpty { null }, description = description.trim().ifEmpty { null }, image = image)
@@ -124,7 +124,8 @@ fun UserProfileLayout(
)
SectionBottomSpacer()
}
} else {
return@ModalView
}
ColumnWithScrollBar(
Modifier
.padding(horizontal = DEFAULT_PADDING),
@@ -223,7 +224,6 @@ fun UserProfileLayout(
}
SectionBottomSpacer()
}
}
}
}
}