Send failure verified user : set the room key recipient strategy
This commit is contained in:
parent
84c8ddacf7
commit
e8baee3c6f
1 changed files with 1 additions and 4 deletions
|
|
@ -60,9 +60,6 @@ class RustMatrixClientFactory @Inject constructor(
|
||||||
.homeserverUrl(sessionData.homeserverUrl)
|
.homeserverUrl(sessionData.homeserverUrl)
|
||||||
.username(sessionData.userId)
|
.username(sessionData.userId)
|
||||||
.setSessionDelegate(sessionDelegate)
|
.setSessionDelegate(sessionDelegate)
|
||||||
.roomKeyRecipientStrategy(
|
|
||||||
strategy = CollectStrategy.DeviceBasedStrategy(false, true)
|
|
||||||
)
|
|
||||||
.use { it.build() }
|
.use { it.build() }
|
||||||
|
|
||||||
client.restoreSession(sessionData.toSession())
|
client.restoreSession(sessionData.toSession())
|
||||||
|
|
@ -115,7 +112,7 @@ class RustMatrixClientFactory @Inject constructor(
|
||||||
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.InvisibleCrypto)) {
|
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.InvisibleCrypto)) {
|
||||||
CollectStrategy.IdentityBasedStrategy
|
CollectStrategy.IdentityBasedStrategy
|
||||||
} else {
|
} else {
|
||||||
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = false)
|
CollectStrategy.DeviceBasedStrategy(onlyAllowTrustedDevices = false, errorOnVerifiedUserProblem = true)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
.run {
|
.run {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue