From 797dc9ccbb6874c97525b6df2a18d5f2fa35fe71 Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 2 Jun 2022 15:36:06 +0200 Subject: [PATCH] Crypto: fix tracking onRoomMembershipEvent --- .../matrix/android/sdk/internal/crypto/DefaultCryptoService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }