mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
two sync loop always enabled by default
This commit is contained in:
@@ -187,10 +187,6 @@ final class AppSettings {
|
||||
/// Tag describing which set of device specific rules a pusher executes.
|
||||
@UserPreference(key: UserDefaultsKeys.pusherProfileTag, storageType: .userDefaults(store))
|
||||
var pusherProfileTag: String?
|
||||
|
||||
/// Tag describing if the app and the NSE should use the encryption sync
|
||||
@UserPreference(key: SharedUserDefaultsKeys.isEncryptionSyncEnabled, defaultValue: true, storageType: .userDefaults(store))
|
||||
var isEncryptionSyncEnabled
|
||||
|
||||
// MARK: - Other
|
||||
|
||||
|
||||
-1
@@ -46,7 +46,6 @@ protocol DeveloperOptionsProtocol: AnyObject {
|
||||
var shouldCollapseRoomStateEvents: Bool { get set }
|
||||
var userSuggestionsEnabled: Bool { get set }
|
||||
var readReceiptsEnabled: Bool { get set }
|
||||
var isEncryptionSyncEnabled: Bool { get set }
|
||||
var notificationSettingsEnabled: Bool { get set }
|
||||
}
|
||||
|
||||
|
||||
-5
@@ -34,11 +34,6 @@ struct DeveloperOptionsScreen: View {
|
||||
}
|
||||
|
||||
Section("Notifications") {
|
||||
Toggle(isOn: $context.isEncryptionSyncEnabled) {
|
||||
Text("Use notification encryption sync")
|
||||
Text("Requires app reboot")
|
||||
}
|
||||
|
||||
Toggle(isOn: $context.notificationSettingsEnabled) {
|
||||
Text("Show notification settings")
|
||||
}
|
||||
|
||||
@@ -406,7 +406,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
do {
|
||||
let syncService = try await client
|
||||
.syncService()
|
||||
.withEncryptionSync(withCrossProcessLock: appSettings.isEncryptionSyncEnabled,
|
||||
.withEncryptionSync(withCrossProcessLock: true,
|
||||
appIdentifier: "MainApp")
|
||||
.finish()
|
||||
let roomListService = syncService.roomListService()
|
||||
|
||||
Reference in New Issue
Block a user