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("*") )