changes: iterate on room create screen #3965
This commit is contained in:
parent
3b600870e1
commit
bc01654d5c
2 changed files with 5 additions and 2 deletions
|
|
@ -102,7 +102,10 @@ class CreateRoomDataStore @Inject constructor(
|
||||||
createRoomConfigFlow.getAndUpdate { config ->
|
createRoomConfigFlow.getAndUpdate { config ->
|
||||||
config.copy(
|
config.copy(
|
||||||
roomVisibility = when (config.roomVisibility) {
|
roomVisibility = when (config.roomVisibility) {
|
||||||
is RoomVisibilityState.Public -> config.roomVisibility.copy(roomAddress = RoomAddress.Edited(address))
|
is RoomVisibilityState.Public -> {
|
||||||
|
val sanitizedAddress = address.lowercase()
|
||||||
|
config.roomVisibility.copy(roomAddress = RoomAddress.Edited(sanitizedAddress))
|
||||||
|
}
|
||||||
else -> config.roomVisibility
|
else -> config.roomVisibility
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -240,9 +240,9 @@ private fun RoomTopic(
|
||||||
modifier = modifier,
|
modifier = modifier,
|
||||||
label = stringResource(R.string.screen_create_room_topic_label),
|
label = stringResource(R.string.screen_create_room_topic_label),
|
||||||
value = topic,
|
value = topic,
|
||||||
placeholder = stringResource(CommonStrings.common_topic_placeholder),
|
|
||||||
onValueChange = onTopicChange,
|
onValueChange = onTopicChange,
|
||||||
maxLines = 3,
|
maxLines = 3,
|
||||||
|
supportingText = stringResource(CommonStrings.common_topic_placeholder),
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
capitalization = KeyboardCapitalization.Sentences,
|
capitalization = KeyboardCapitalization.Sentences,
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue