Skip to content

Commit

Permalink
we should expect the bridge to return a string
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalzieu committed Nov 20, 2024
1 parent 64ffe9d commit 4dca670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,12 +857,12 @@ export async function processMessage<
id: ConversationId,
encryptedMessage: string
): Promise<DecodedMessage<ContentTypes>> {
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<
Expand Down

0 comments on commit 4dca670

Please sign in to comment.