diff --git a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt index 56c181a306..24591e8bd4 100644 --- a/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt +++ b/matrix-sdk-android/src/kotlinCrypto/java/org/matrix/android/sdk/internal/crypto/SecretShareManager.kt @@ -136,7 +136,7 @@ internal class SecretShareManager @Inject constructor( .w("handleSecretRequest() : malformed request norequestingDeviceId ") } - if (request.requestingDeviceId == credentials.deviceId) { + if (deviceId == credentials.deviceId) { return Unit.also { Timber.tag(loggerTag.value) .v("handleSecretRequest() : Ignore request from self device")