Fix crypto v2 config

This commit is contained in:
Andy Uhnak
2023-02-01 11:49:16 +00:00
parent 5e167bb0ef
commit 54266c2e8d
3 changed files with 10 additions and 14 deletions
-11
View File
@@ -22,17 +22,6 @@ import Foundation
@objcMembers class CryptoSDKConfiguration: NSObject {
static let shared = CryptoSDKConfiguration()
func setup() {
guard MXSDKOptions.sharedInstance().isCryptoSDKAvailable else {
return
}
let isEnabled = RiotSettings.shared.enableCryptoSDK
MXSDKOptions.sharedInstance().enableCryptoSDK = isEnabled
MXLog.debug("[CryptoSDKConfiguration] setup: Crypto SDK is \(isEnabled ? "enabled" : "disabled")")
}
func enable() {
guard MXSDKOptions.sharedInstance().isCryptoSDKAvailable else {
return