diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt index 5b0483203d..833843812e 100755 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt @@ -486,7 +486,7 @@ internal class DefaultCryptoService @Inject constructor( */ private fun onRoomMembershipEvent(roomId: String, event: Event) { // We only care about the memberships if this room is encrypted - if (isRoomEncrypted(roomId)) { + if (!isRoomEncrypted(roomId)) { return }