Make room / call creation logging more accurate

It said it was creating the room when actually it was creating the call
This commit is contained in:
David Baker 2022-11-10 19:10:10 +00:00
parent 3f341de78f
commit bd08166a50

View File

@ -225,6 +225,7 @@ export async function createRoom(
name: string,
ptt: boolean
): Promise<[string, string]> {
console.log(`Creating room for froup call`);
const createPromise = client.createRoom({
visibility: Visibility.Private,
preset: Preset.PublicChat,
@ -276,7 +277,9 @@ export async function createRoom(
const result = await createPromise;
console.log(`Creating ${ptt ? "PTT" : "video"} group call room`);
console.log(
`Creating ${ptt ? "PTT" : "video"} group call in ${result.room_id}`
);
await client.createGroupCall(
result.room_id,