mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-19 19:20:06 +00:00
fix UI
This commit is contained in:
+3
-3
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user