mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Add clientPermalinkBaseUrl and set in matrix-sdk options.
This commit is contained in:
parent
8768eb2e76
commit
4175f3fdc3
2 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue