From 2de8865730b0fbb393b2c5549c015e6947488c2b Mon Sep 17 00:00:00 2001 From: Valere Date: Tue, 24 Mar 2020 15:49:41 +0100 Subject: [PATCH] Fix / Key Request recipients --- .../internal/crypto/algorithms/megolm/MXMegolmDecryption.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt index d5b3b3b034..1d7a2765fa 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/algorithms/megolm/MXMegolmDecryption.kt @@ -149,7 +149,7 @@ internal class MXMegolmDecryption(private val userId: String, val encryptedEventContent = event.content.toModel() val senderDevice = encryptedEventContent?.deviceId ?: return - val recipients = if (event.senderId != userId) { + val recipients = if (event.senderId == userId) { mapOf( userId to listOf("*") )