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<