From a3611e18e3d6213265d3122467b4f53ff2067d6b Mon Sep 17 00:00:00 2001 From: izzy Date: Thu, 23 Oct 2025 11:38:02 +0100 Subject: [PATCH] fix: don't include recipients array if not necessary --- package.json | 2 +- src/classes/Channel.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4d311367..1e3f0863 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stoat.js", - "version": "7.3.3", + "version": "7.3.4", "type": "module", "exports": { ".": "./lib/index.js" diff --git a/src/classes/Channel.ts b/src/classes/Channel.ts index 073780dd..17bc5aca 100644 --- a/src/classes/Channel.ts +++ b/src/classes/Channel.ts @@ -802,11 +802,11 @@ export class Channel { * @param recipients Ring targets * @returns LiveKit URL and Token */ - async joinCall(node?: string, forceDisconnect = true, recipients: (User | string)[] = []) { + async joinCall(node?: string, forceDisconnect = true, recipients?: (User | string)[]) { return await this.#collection.client.api.post( `/channels/${this.id as ''}/join_call`, { node, - recipients: recipients.map(entry => typeof entry === 'string' ? entry : entry.id), + recipients: recipients?.map(entry => typeof entry === 'string' ? entry : entry.id), force_disconnect: forceDisconnect }); }