From 14b4589286ea72f5826dccde4ea919c8483e2933 Mon Sep 17 00:00:00 2001 From: Matvei Andrienko Date: Thu, 25 Jul 2024 10:30:00 +0200 Subject: [PATCH] fix: allow joining left call instances --- packages/client/src/Call.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/client/src/Call.ts b/packages/client/src/Call.ts index 1209f35b54..296182e619 100644 --- a/packages/client/src/Call.ts +++ b/packages/client/src/Call.ts @@ -729,12 +729,6 @@ export class Call { throw new Error(`Illegal State: Already joined.`); } - if (callingState === CallingState.LEFT) { - throw new Error( - 'Illegal State: Cannot join already left call. Create a new Call instance to join a call.', - ); - } - const isMigrating = callingState === CallingState.MIGRATING; const isReconnecting = callingState === CallingState.RECONNECTING; this.state.setCallingState(CallingState.JOINING);