Skip to content

Commit

Permalink
Merge pull request #620 from xmtp/rygine/fix-inbox-id
Browse files Browse the repository at this point in the history
Ensure correct inbox ID for all environments
  • Loading branch information
rygine authored Jun 8, 2024
2 parents dff3be3 + ff6c304 commit c9254ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-ties-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/mls-client": patch
---

Ensure correct inbox ID for all environments
7 changes: 2 additions & 5 deletions packages/mls-client/src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c9254ac

Please sign in to comment.