Change a few links in AppSettings

This commit is contained in:
Letro Bot
2026-04-14 17:40:16 +04:00
parent a31475e2f5
commit 6774697c17

View File

@@ -224,15 +224,15 @@ final class AppSettings {
/// A URL where users can go read more about identity pinning violations
private(set) var identityPinningViolationDetailsURL: URL = "https://letro.com/help#encryption18"
/// A URL describing how history sharing works
private(set) var historySharingDetailsURL: URL = "https://letro.com/en/help#e2ee-history-sharing"
private(set) var historySharingDetailsURL: URL = "https://letro.com/help#e2ee-history-sharing"
/// Any domains that Element web may be hosted on - used for handling links.
private(set) var elementWebHosts = ["app.element.io", "staging.element.io", "develop.element.io"]
private(set) var elementWebHosts = ["app.letro.com", "staging.letro.com", "develop.letro.com"]
/// The domain that account provisioning links will be hosted on - used for handling the links.
private(set) var accountProvisioningHost = "mobile.element.io"
private(set) var accountProvisioningHost = "mobile.letro.com"
/// The App Store URL for Element Pro, shown to the user when a homeserver requires that app.
/// **Note:** This property isn't overridable as it in unexpected for forks to come across the error (or to even have a "Pro" app).
let elementProAppStoreURL: URL = "https://apps.apple.com/app/element-pro-for-work/id6502951615"
let elementProAppStoreURL: URL = "https://apps.apple.com/app/letro-pro/id6758909629"
@UserPreference(key: UserDefaultsKeys.appAppearance, defaultValue: .system, storageType: .userDefaults(store))
var appAppearance: AppAppearance
@@ -279,7 +279,7 @@ final class AppSettings {
#endif
}
private(set) var pushGatewayBaseURL: URL = "https://matrix.org"
private(set) var pushGatewayBaseURL: URL = "https://letro.com"
var pushGatewayNotifyEndpoint: URL {
pushGatewayBaseURL.appending(path: "_matrix/push/v1/notify")
}
@@ -318,14 +318,14 @@ final class AppSettings {
let bugReportSentryURL: URL? = Secrets.sentryDSN.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
let bugReportSentryRustURL: URL? = Secrets.sentryRustDSN.map { URL(string: $0)! } // swiftlint:disable:this force_unwrapping
/// The name allocated by the bug report server
private(set) var bugReportApplicationID = "element-x-ios"
private(set) var bugReportApplicationID = "letro"
// MARK: - Analytics
/// The configuration to use for analytics. Set to `nil` to disable analytics.
let analyticsConfiguration: AnalyticsConfiguration? = AppSettings.makeAnalyticsConfiguration()
/// The URL to open with more information about analytics terms. When this is `nil` the "Learn more" link will be hidden.
private(set) var analyticsTermsURL: URL? = "https://element.io/cookie-policy"
private(set) var analyticsTermsURL: URL? = "https://letro.com/cookie-policy"
/// Whether or not there the app is able ask for user consent to enable analytics or sentry reporting.
var canPromptForAnalytics: Bool {
analyticsConfiguration != nil || bugReportSentryURL != nil