add the content scanner URL to the app settings

This commit is contained in:
Mauro Romito
2026-07-01 15:24:41 +02:00
committed by Mauro
parent f7a4f8a2b4
commit 153c258f78
2 changed files with 8 additions and 1 deletions
@@ -23,6 +23,7 @@ nonisolated protocol CommonSettingsProtocol: AnyObject, Sendable {
var logLevel: LogLevel { get }
var traceLogPacks: Set<TraceLogPack> { get }
var bugReportRageshakeURL: RemotePreference<RageshakeConfiguration> { get }
var contentScannerURL: RemotePreference<URL?> { get }
var enableOnlySignedDeviceIsolationMode: Bool { get }
var threadsEnabled: Bool { get }
@@ -266,6 +267,12 @@ final nonisolated class AppSettings: @unchecked Sendable {
/// The name allocated by the bug report server
private(set) var bugReportApplicationID = "element-x-ios"
// MARK: - Content scanner
/// The base URL of the content scanner server used to scan media before it is downloaded.
/// `nil` when content scanning is disabled.
let contentScannerURL: RemotePreference<URL?> = .init(nil)
// MARK: - Analytics
/// The configuration to use for analytics. Set to `nil` to disable analytics.