File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
main/java/org/matrix/android/sdk/api/rendezvous
rustCrypto/java/org/matrix/android/sdk/internal/crypto Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ class Rendezvous(
218
218
Timber .tag(TAG ).i(" No master key given by verifying device" )
219
219
}
220
220
221
- // request secrets from the verifying device
222
- Timber .tag(TAG ).i(" Requesting secrets from $verifyingDeviceId " )
221
+ // request secrets from other sessions.
222
+ Timber .tag(TAG ).i(" Requesting secrets from other sessions " )
223
223
224
224
session.sharedSecretStorageService().requestMissingSecrets()
225
225
} else {
Original file line number Diff line number Diff line change @@ -28,13 +28,9 @@ internal class SecretShareManager @Inject constructor(
28
28
private val outgoingRequestsProcessor : OutgoingRequestsProcessor ) {
29
29
30
30
suspend fun requestSecretTo (deviceId : String , secretName : String ) {
31
- Timber .v(" SecretShareManager requesting $deviceId , $secretName " )
32
- if (this .olmMachine.get().requestMissingSecretsFromOtherSessions()) {
33
- // immediately send the requests
34
- outgoingRequestsProcessor.processOutgoingRequests(this .olmMachine.get()) {
35
- it is Request .ToDevice && it.eventType == EventType .REQUEST_SECRET
36
- }
37
- }
31
+ Timber .w(" SecretShareManager requesting custom secrets not supported $deviceId , $secretName " )
32
+ // rust stack only support requesting secrets defined in the spec (not custom secret yet)
33
+ requestMissingSecrets()
38
34
}
39
35
40
36
suspend fun requestMissingSecrets () {
You can’t perform that action at this time.
0 commit comments