File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ import org.matrix.rustcomponents.sdk.SlidingSyncVersionBuilder
3232import org.matrix.rustcomponents.sdk.use
3333import timber.log.Timber
3434import uniffi.matrix_sdk_crypto.CollectStrategy
35+ import uniffi.matrix_sdk_crypto.TrustRequirement
3536import java.io.File
3637import javax.inject.Inject
3738
@@ -108,6 +109,13 @@ class RustMatrixClientFactory @Inject constructor(
108109 CollectStrategy .DeviceBasedStrategy (onlyAllowTrustedDevices = false , errorOnVerifiedUserProblem = true )
109110 }
110111 )
112+ .roomDecryptionTrustRequirement(
113+ trustRequirement = if (featureFlagService.isFeatureEnabled(FeatureFlags .OnlySignedDeviceIsolationMode )) {
114+ TrustRequirement .CROSS_SIGNED_OR_LEGACY
115+ } else {
116+ TrustRequirement .UNTRUSTED
117+ }
118+ )
111119 .run {
112120 // Apply sliding sync version settings
113121 when (slidingSyncType) {
You can’t perform that action at this time.
0 commit comments