From aecde6ce69e3c7204be2ef3b065bcd73547a75ea Mon Sep 17 00:00:00 2001 From: iamkiddy Date: Thu, 4 Dec 2025 16:14:24 +0000 Subject: [PATCH] Enhance startMeeting function to accept optional metadata and recording URL parameters Update the startMeeting function in appointments.ts to include optional parameters for metadata and recording URL. This enhancement allows for more flexible meeting initiation by enabling additional context and resources to be passed during the meeting start process. --- lib/actions/appointments.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/actions/appointments.ts b/lib/actions/appointments.ts index 7c3c5e6..f1666c9 100644 --- a/lib/actions/appointments.ts +++ b/lib/actions/appointments.ts @@ -738,7 +738,13 @@ export async function getJitsiMeetingInfo(id: string): Promise return data; } -export async function startMeeting(id: string): Promise { +export async function startMeeting( + id: string, + options?: { + metadata?: string; + recording_url?: string; + } +): Promise { const tokens = getStoredTokens(); if (!tokens.access) { throw new Error("Authentication required."); @@ -750,6 +756,11 @@ export async function startMeeting(id: string): Promise { "Content-Type": "application/json", Authorization: `Bearer ${tokens.access}`, }, + body: JSON.stringify({ + action: "start", + metadata: options?.metadata, + recording_url: options?.recording_url, + }), }); const data = await parseResponse(response); -- 2.39.5