From 1401eb245e707b8c24e3c14fa741d28186699fb5 Mon Sep 17 00:00:00 2001 From: damencho Date: Sat, 25 Jan 2025 09:21:07 -0600 Subject: [PATCH] fix(lobby): Fixes wrong password going back to knocking. Fixes the case when someone enters a wrong password to access the meeting and then clicks back to continue knocking and not showing the knocking state, while still in the Lobby room. The problem was introduced in 721bb4e, on access denied we are being kicked out of lobby room and then knocking state should be cleared. --- react/features/lobby/reducer.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/react/features/lobby/reducer.ts b/react/features/lobby/reducer.ts index 4d79bf27c19e..fa5c277757d3 100644 --- a/react/features/lobby/reducer.ts +++ b/react/features/lobby/reducer.ts @@ -58,12 +58,14 @@ ReducerRegistry.register('features/lobby', (state = DEFAULT_STATE, ...state, isDisplayNameRequiredError: true }; + } else if (action.error.name === JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED) { + return { + ...state, + knocking: false + }; } - return { - ...state, - knocking: false - }; + return state; } case CONFERENCE_JOINED: case CONFERENCE_LEFT: