Update use case, registration and login screens.

Remove "Custom server" button from use case screen.
Remove matrix.org description.
Add username availability to registration screen.
This commit is contained in:
Doug
2022-07-13 13:39:27 +01:00
committed by Doug
parent ddc61660a3
commit 82b60f2e5e
24 changed files with 224 additions and 208 deletions
@@ -47,6 +47,7 @@ enum MockAuthenticationRegistrationScreenState: MockScreenState, CaseIterable {
viewModel = AuthenticationRegistrationViewModel(homeserver: .mockBasicServer)
viewModel.context.username = "alice"
viewModel.context.password = "password"
Task { await viewModel.confirmUsernameAvailability("alice") }
case .passwordWithUsernameError:
viewModel = AuthenticationRegistrationViewModel(homeserver: .mockBasicServer)
viewModel.state.hasEditedUsername = true