From e3003fd1f517ac1a08ca22b30bc7422fdca6256f Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:37:21 +0000 Subject: [PATCH] simplex-chat-nodejs: fix userChatRelay type error in apiCreateActiveUser (#6764) The @simplex-chat/types package (auto-generated from Haskell types) added a required `userChatRelay: boolean` field to the NewUser interface, but apiCreateActiveUser was never updated to pass it, causing a TypeScript compilation error. Set userChatRelay to false, which preserves the pre-existing behavior (no chat relay provisioned for the new user profile). --- packages/simplex-chat-nodejs/src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/simplex-chat-nodejs/src/api.ts b/packages/simplex-chat-nodejs/src/api.ts index c3e85b3915..f5d2a5168e 100644 --- a/packages/simplex-chat-nodejs/src/api.ts +++ b/packages/simplex-chat-nodejs/src/api.ts @@ -813,7 +813,7 @@ export class ChatApi { * Network usage: no. */ async apiCreateActiveUser(profile?: T.Profile): Promise { - const r = await this.sendChatCmd(CC.CreateActiveUser.cmdString({newUser: {profile, pastTimestamp: false}})) + const r = await this.sendChatCmd(CC.CreateActiveUser.cmdString({newUser: {profile, pastTimestamp: false, userChatRelay: false}})) if (r.type === "activeUser") return r.user throw new ChatCommandError("unexpected response", r) }