diff --git a/sdks/browser-sdk/src/utils/conversions.ts b/sdks/browser-sdk/src/utils/conversions.ts index 8f93031d..a1386096 100644 --- a/sdks/browser-sdk/src/utils/conversions.ts +++ b/sdks/browser-sdk/src/utils/conversions.ts @@ -339,15 +339,17 @@ export const toSafeConversation = async ( }); export type SafeInstallation = { - id: string; + bytes: Uint8Array; clientTimestampNs?: bigint; + id: string; }; export const toSafeInstallation = ( installation: Installation, ): SafeInstallation => ({ - id: installation.id, + bytes: installation.bytes, clientTimestampNs: installation.clientTimestampNs, + id: installation.id, }); export type SafeInboxState = { diff --git a/sdks/browser-sdk/test/Client.test.ts b/sdks/browser-sdk/test/Client.test.ts index e9540047..4a624ff1 100644 --- a/sdks/browser-sdk/test/Client.test.ts +++ b/sdks/browser-sdk/test/Client.test.ts @@ -70,6 +70,9 @@ describe.concurrent("Client", () => { expect(inboxState2.inboxId).toBe(client.inboxId); expect(inboxState.installations.length).toBe(1); expect(inboxState.installations[0].id).toBe(client.installationId); + expect(inboxState.installations[0].bytes).toEqual( + client.installationIdBytes, + ); expect(inboxState2.accountAddresses).toEqual([ user.account.address.toLowerCase(), ]);