Skip to content

Commit

Permalink
fix: allow joining left call instances (#1448)
Browse files Browse the repository at this point in the history
πŸš‚ #1433 

Removes a guard preventing joining left calls.
  • Loading branch information
myandrienko authored Jul 25, 2024
1 parent 61e05af commit 2f72300
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/client/src/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2f72300

Please sign in to comment.