diff --git a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt index 26de287d2..9f5a619ac 100644 --- a/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt +++ b/android/src/main/java/expo/modules/xmtpreactnativesdk/XMTPModule.kt @@ -1553,7 +1553,7 @@ class XMTPModule : Module() { val conversation = client.findConversation(id) ?: throw XMTPException("no conversation found for $id") val message = conversation.processMessage(Base64.decode(encryptedMessage, NO_WRAP)) - DecodedMessageWrapper.encodeMap(message.decrypt()) + DecodedMessageWrapper.encode(message.decrypt()) } } diff --git a/package.json b/package.json index 595978c2f..46125af4e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@xmtp/react-native-sdk", - "version": "0.1.0", + "version": "2.8.5", "description": "Wraps for native xmtp sdks for react native", "main": "build/index.js", "types": "build/index.d.ts", diff --git a/src/index.ts b/src/index.ts index f774f1a1b..284efcac8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1450,7 +1450,7 @@ export async function processConversationMessage< id: string, encryptedMessage: string ): Promise> { - const json = XMTPModule.processConversationMessage( + const json = await XMTPModule.processConversationMessage( client.inboxId, id, encryptedMessage