Update remaining strings for FTUE.

Include homeserver in view models/state as needed.
Pre-fill the user's display name as set by the server.
This commit is contained in:
Doug
2022-07-14 11:41:36 +01:00
committed by Doug
parent 5394ed0f4a
commit d5b5101420
48 changed files with 250 additions and 155 deletions
@@ -37,11 +37,14 @@ enum MockAuthenticationVerifyEmailScreenState: MockScreenState, CaseIterable {
let viewModel: AuthenticationVerifyEmailViewModel
switch self {
case .emptyAddress:
viewModel = AuthenticationVerifyEmailViewModel(emailAddress: "")
viewModel = AuthenticationVerifyEmailViewModel(homeserver: .mockMatrixDotOrg,
emailAddress: "")
case .enteredAddress:
viewModel = AuthenticationVerifyEmailViewModel(emailAddress: "test@example.com")
viewModel = AuthenticationVerifyEmailViewModel(homeserver: .mockMatrixDotOrg,
emailAddress: "test@example.com")
case .hasSentEmail:
viewModel = AuthenticationVerifyEmailViewModel(emailAddress: "test@example.com")
viewModel = AuthenticationVerifyEmailViewModel(homeserver: .mockMatrixDotOrg,
emailAddress: "test@example.com")
Task { await viewModel.updateForSentEmail() }
}