From 7460b72c9565509310e93a40e2a69593c29791f9 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Thu, 15 Feb 2024 08:10:35 -0800 Subject: [PATCH] add can message correctly --- .../main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt index 20769e7ea..cc930106a 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt @@ -293,9 +293,7 @@ class XMTPModule : Module() { if (client.libXMTPClient == null) { throw XMTPException("Create client with enableAlphaMLS true in order to call canGroupMessage") } - runBlocking { - client.libXMTPClient!!.canMessage(peerAddresses) - } + client.canMessage(peerAddresses) } AsyncFunction("staticCanMessage") { peerAddress: String, environment: String, appVersion: String? ->