From a3fb369c8468b6070d7f7fc5cbc6a6cf0a4bfde6 Mon Sep 17 00:00:00 2001 From: Rajesh Kumar Date: Fri, 29 Sep 2023 20:42:25 +0530 Subject: [PATCH] fix(meeting): do not call leave if not joined - release --- src/components/hooks/useMeetingDestination.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/hooks/useMeetingDestination.js b/src/components/hooks/useMeetingDestination.js index c1a66271a..0580576b9 100644 --- a/src/components/hooks/useMeetingDestination.js +++ b/src/components/hooks/useMeetingDestination.js @@ -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); }