mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
crypto: rename invisible crypto flag to deviceIsolationMode (#3331)
This commit is contained in:
@@ -15,7 +15,7 @@ extension ClientBuilder {
|
||||
slidingSync: ClientBuilderSlidingSync,
|
||||
sessionDelegate: ClientSessionDelegate,
|
||||
appHooks: AppHooks,
|
||||
invisibleCryptoEnabled: Bool) -> ClientBuilder {
|
||||
enableOnlySignedDeviceIsolationMode: Bool) -> ClientBuilder {
|
||||
var builder = ClientBuilder()
|
||||
.enableCrossProcessRefreshLock(processId: InfoPlistReader.main.bundleIdentifier, sessionDelegate: sessionDelegate)
|
||||
.userAgent(userAgent: UserAgentBuilder.makeASCIIUserAgent())
|
||||
@@ -34,7 +34,7 @@ extension ClientBuilder {
|
||||
.backupDownloadStrategy(backupDownloadStrategy: .afterDecryptionFailure)
|
||||
.autoEnableBackups(autoEnableBackups: true)
|
||||
|
||||
if invisibleCryptoEnabled {
|
||||
if enableOnlySignedDeviceIsolationMode {
|
||||
builder = builder.roomKeyRecipientStrategy(strategy: CollectStrategy.identityBasedStrategy)
|
||||
} else {
|
||||
builder = builder.roomKeyRecipientStrategy(strategy: .deviceBasedStrategy(onlyAllowTrustedDevices: false, errorOnVerifiedUserProblem: true))
|
||||
|
||||
Reference in New Issue
Block a user