Expose Element Call settings in the developer options. Start using th… (#2039)

* Expose Element Call settings in the developer options. Start using the encryption widget parameter.

* Remove the Element Call feature flag
This commit is contained in:
Stefan Ceriu
2023-11-07 16:12:03 +02:00
committed by GitHub
parent b13abf9cdf
commit 5dcb24add7
13 changed files with 76 additions and 56 deletions
@@ -37,12 +37,14 @@ final class AppSettings {
case viewSourceEnabled
case richTextEditorEnabled
case elementCallBaseURL
case elementCallEncryptionEnabled
// Feature flags
case shouldCollapseRoomStateEvents
case userSuggestionsEnabled
case readReceiptsEnabled
case swiftUITimelineEnabled
case elementCallEnabled
case chatBackupEnabled
}
@@ -215,7 +217,11 @@ final class AppSettings {
// MARK: - Element Call
let elementCallBaseURL: URL = "https://call.element.dev"
@UserPreference(key: UserDefaultsKeys.elementCallBaseURL, defaultValue: "https://call.element.io", storageType: .userDefaults(store))
var elementCallBaseURL: URL
@UserPreference(key: UserDefaultsKeys.elementCallEncryptionEnabled, defaultValue: true, storageType: .userDefaults(store))
var elementCallUseEncryption
// MARK: - Notifications
@@ -267,9 +273,6 @@ final class AppSettings {
@UserPreference(key: UserDefaultsKeys.swiftUITimelineEnabled, defaultValue: false, storageType: .volatile)
var swiftUITimelineEnabled
@UserPreference(key: UserDefaultsKeys.elementCallEnabled, defaultValue: true, storageType: .userDefaults(store))
var elementCallEnabled
@UserPreference(key: UserDefaultsKeys.chatBackupEnabled, defaultValue: false, storageType: .userDefaults(store))
var chatBackupEnabled
}