Use matrixApps for allowIntegrations, will be moved later

This commit is contained in:
ismailgulek
2020-07-30 14:52:07 +03:00
parent 951018111e
commit 08cb1e8516
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -34,6 +34,7 @@ final class RiotSettings: NSObject {
static let stunServerFallback = "stunServerFallback"
static let hideVerifyThisSessionAlert = "hideVerifyThisSessionAlert"
static let hideReviewSessionsAlert = "hideReviewSessionsAlert"
static let matrixApps = "matrixApps"
}
static let shared = RiotSettings()
@@ -62,7 +63,6 @@ final class RiotSettings: NSObject {
let showDiscoverySettings: Bool = true
let allowIdentityServerConfig: Bool = true
let allowLocalContactsAccess: Bool = true
let allowIntegrations: Bool = true
let showAdvancedSettings: Bool = true
let showLabSettings: Bool = true
let allowChangingRageshakeSettings: Bool = true
@@ -216,4 +216,12 @@ final class RiotSettings: NSObject {
defaults.set(newValue, forKey: UserDefaultsKeys.hideReviewSessionsAlert)
}
}
var matrixApps: Bool {
get {
return defaults.bool(forKey: UserDefaultsKeys.matrixApps)
} set {
defaults.set(newValue, forKey: UserDefaultsKeys.matrixApps)
}
}
}