diff --git a/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt b/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt index d71c0de360..e1507044ae 100644 --- a/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt +++ b/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt @@ -123,9 +123,9 @@ enum class FeatureFlags( defaultValue = { true }, isFinished = false, ), - InvisibleCrypto( - key = "feature.invisibleCrypto", - title = "Invisible Crypto", + OnlySignedDeviceIsolationMode( + key = "feature.onlySignedDeviceIsolationMode", + title = "Exclude not secure devices when sending/receiving messages", description = "This setting controls how end-to-end encryption (E2E) keys are shared." + " Enabling it will prevent the inclusion of devices that have not been explicitly verified by their owners." + " You'll have to stop and re-open the app manually for that setting to take effect.", diff --git a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt index e8c5f3dec3..4d320ed810 100644 --- a/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt +++ b/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt @@ -101,7 +101,7 @@ class RustMatrixClientFactory @Inject constructor( .autoEnableBackups(true) .autoEnableCrossSigning(true) .roomKeyRecipientStrategy( - strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.InvisibleCrypto)) { + strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) { CollectStrategy.IdentityBasedStrategy } else { CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = true)