diff --git a/.changeset/brown-ties-film.md b/.changeset/brown-ties-film.md new file mode 100644 index 000000000..cfe6c5c32 --- /dev/null +++ b/.changeset/brown-ties-film.md @@ -0,0 +1,5 @@ +--- +"@xmtp/mls-client": patch +--- + +Ensure correct inbox ID for all environments diff --git a/packages/mls-client/src/Client.ts b/packages/mls-client/src/Client.ts index 14385ed98..1af536a06 100644 --- a/packages/mls-client/src/Client.ts +++ b/packages/mls-client/src/Client.ts @@ -94,11 +94,8 @@ export class Client { options?.dbPath ?? join(process.cwd(), `${accountAddress}.db3`) const inboxId = - (await getInboxIdForAddress( - 'http://localhost:5556', - false, - accountAddress - )) || generateInboxId(accountAddress) + (await getInboxIdForAddress(host, isSecure, accountAddress)) || + generateInboxId(accountAddress) return new Client( await createClient(