Add clientPermalinkBaseUrl and set in matrix-sdk options.

This commit is contained in:
David Langley 2021-10-29 11:07:22 +01:00
parent 8768eb2e76
commit 4175f3fdc3
2 changed files with 7 additions and 0 deletions

View file

@ -133,8 +133,14 @@ final class BuildSettings: NSObject {
// Official Matrix ones
"matrix.to": ["/"],
"www.matrix.to": ["/"],
// Client Permalinks (for use with `BuildSettings.clientPermalinkBaseUrl`)
// "clienturl.com": ["/"],
// "www.clienturl.com": ["/"],
]
// For use in clients that use a custom base url for permalinks rather than matrix.to.
// This baseURL is used to generate permalinks within the app (E.g. timeline message permalinks).
static let clientPermalinkBaseUrl: String? = nil
// MARK: - VoIP
static var allowVoIPUsage: Bool {

View file

@ -75,6 +75,7 @@ class CommonConfiguration: NSObject, Configurable {
// Disable key backup on common
sdkOptions.enableKeyBackupWhenStartingMXCrypto = false
sdkOptions.clientPermalinkBaseUrl = BuildSettings.clientPermalinkBaseUrl
// Configure key provider delegate
MXKeyProvider.sharedInstance().delegate = EncryptionKeyManager.shared
}