mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
Move string formatting to Tools.
Revert contacts tracking from MatrixKit. Final tweaks before PR.
This commit is contained in:
@@ -29,6 +29,8 @@ class AnalyticsPromptViewModel: AnalyticsPromptViewModelType {
|
||||
// MARK: - Properties
|
||||
|
||||
// MARK: Private
|
||||
|
||||
let termsURL: URL
|
||||
|
||||
// MARK: Public
|
||||
|
||||
@@ -37,7 +39,8 @@ class AnalyticsPromptViewModel: AnalyticsPromptViewModelType {
|
||||
// MARK: - Setup
|
||||
|
||||
/// Initialize a view model with the specified prompt type and app display name.
|
||||
init(promptType: AnalyticsPromptType, strings: AnalyticsPromptStringsProtocol) {
|
||||
init(promptType: AnalyticsPromptType, strings: AnalyticsPromptStringsProtocol, termsURL: URL) {
|
||||
self.termsURL = termsURL
|
||||
super.init(initialViewState: AnalyticsPromptViewState(promptType: promptType, strings: strings))
|
||||
}
|
||||
|
||||
@@ -70,7 +73,6 @@ class AnalyticsPromptViewModel: AnalyticsPromptViewModelType {
|
||||
|
||||
/// Open the service terms link.
|
||||
private func openTermsURL() {
|
||||
guard let url = URL(string: "https://element.io/cookie-policy") else { return }
|
||||
UIApplication.shared.open(url)
|
||||
UIApplication.shared.open(termsURL)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user