mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user