mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Revert "Associate the room address field helper text and error with the field"
This reverts commit d4e7cbfdbe.
This commit is contained in:
@@ -193,8 +193,7 @@ struct CreateRoomScreen: View {
|
||||
Section {
|
||||
EditRoomAddressListRow(aliasLocalPart: aliasBinding,
|
||||
serverName: context.viewState.serverName,
|
||||
errorDescription: context.viewState.aliasErrors.errorDescription,
|
||||
footerText: L10n.screenCreateRoomRoomAddressSectionFooter)
|
||||
shouldDisplayError: context.viewState.aliasErrors.errorDescription != nil)
|
||||
.focused($focus, equals: .alias)
|
||||
.id(Focus.alias)
|
||||
} header: {
|
||||
|
||||
@@ -16,9 +16,7 @@ struct EditRoomAddressScreen: View {
|
||||
Form {
|
||||
Section {
|
||||
EditRoomAddressListRow(aliasLocalPart: $context.desiredAliasLocalPart,
|
||||
serverName: context.viewState.serverName,
|
||||
errorDescription: context.viewState.aliasErrors.errorDescription,
|
||||
footerText: L10n.screenEditRoomAddressRoomAddressSectionFooter)
|
||||
serverName: context.viewState.serverName, shouldDisplayError: context.viewState.aliasErrors.errorDescription != nil)
|
||||
.onChange(of: context.desiredAliasLocalPart) { _, newAliasLocalPart in
|
||||
context.desiredAliasLocalPart = newAliasLocalPart.lowercased()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user