Skip to content

Commit b245c69

Browse files
committed
Send failure verified user : set the room key recipient strategy
1 parent e16adb9 commit b245c69

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClientFactory.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ class RustMatrixClientFactory @Inject constructor(
6060
.homeserverUrl(sessionData.homeserverUrl)
6161
.username(sessionData.userId)
6262
.setSessionDelegate(sessionDelegate)
63-
.roomKeyRecipientStrategy(
64-
strategy = CollectStrategy.DeviceBasedStrategy(false, true)
65-
)
6663
.use { it.build() }
6764

6865
client.restoreSession(sessionData.toSession())
@@ -115,7 +112,7 @@ class RustMatrixClientFactory @Inject constructor(
115112
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.InvisibleCrypto)) {
116113
CollectStrategy.IdentityBasedStrategy
117114
} else {
118-
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = false)
115+
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = true)
119116
}
120117
)
121118
.run {

0 commit comments

Comments
 (0)