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,16 +37,18 @@ enum MockAuthenticationTermsScreenState: MockScreenState, CaseIterable {
let viewModel: AuthenticationTermsViewModel
switch self {
case .matrixDotOrg:
viewModel = AuthenticationTermsViewModel(policies: [AuthenticationTermsPolicy(url: "https://matrix-client.matrix.org/_matrix/consent?v=1.0",
viewModel = AuthenticationTermsViewModel(homeserver: .mockMatrixDotOrg,
policies: [AuthenticationTermsPolicy(url: "https://matrix-client.matrix.org/_matrix/consent?v=1.0",
title: "Terms and Conditions",
subtitle: "matrix.org")])
case .accepted:
viewModel = AuthenticationTermsViewModel(policies: [AuthenticationTermsPolicy(url: "https://matrix-client.matrix.org/_matrix/consent?v=1.0",
viewModel = AuthenticationTermsViewModel(homeserver: .mockMatrixDotOrg,
policies: [AuthenticationTermsPolicy(url: "https://matrix-client.matrix.org/_matrix/consent?v=1.0",
title: "Terms and Conditions",
subtitle: "matrix.org",
accepted: true)])
case .multiple:
viewModel = AuthenticationTermsViewModel(policies: [
viewModel = AuthenticationTermsViewModel(homeserver: .mockBasicServer, policies: [
AuthenticationTermsPolicy(url: "https://example.com/terms", title: "Terms and Conditions", subtitle: "example.com"),
AuthenticationTermsPolicy(url: "https://example.com/privacy", title: "Privacy Policy", subtitle: "example.com"),
AuthenticationTermsPolicy(url: "https://example.com/conduct", title: "Code of Conduct", subtitle: "example.com")