From 4dca6708a54aff6a20a4b3b7301ed1be7211558b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noe=CC=81=20Malzieu?= Date: Wed, 20 Nov 2024 19:22:32 -0100 Subject: [PATCH] we should expect the bridge to return a string --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fbf34863..59815a0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -857,12 +857,12 @@ export async function processMessage< id: ConversationId, encryptedMessage: string ): Promise> { - const obj = await XMTPModule.processMessage( + const json = await XMTPModule.processMessage( client.inboxId, id, encryptedMessage ) - return DecodedMessage.fromObject(obj, client) + return DecodedMessage.from(json, client) } export async function processWelcomeMessage<