Skip to content

Commit

Permalink
fix(meeting): do not call leave if not joined - release
Browse files Browse the repository at this point in the history
  • Loading branch information
rarajes2 committed Sep 29, 2023
1 parent 877a7d1 commit a3fb369
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/hooks/useMeetingDestination.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function useMeetingDestination(meetingDestination) {
).subscribe(onMeeting, onError);

let beforePageUnload = async () => {
// Call leave only if meeting was joined
if (lastMeeting?.ID && lastMeeting.state === MeetingState.JOINED) {
await meetingsAdapter.leavemeeting(lastMeeting.ID);
}
Expand Down

0 comments on commit a3fb369

Please sign in to comment.