Skip to content

Commit

Permalink
fix(lobby): Fixes wrong password going back to knocking.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
damencho committed Jan 25, 2025
1 parent 27eec7b commit 1401eb2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions react/features/lobby/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ ReducerRegistry.register<ILobbyState>('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:
Expand Down

0 comments on commit 1401eb2

Please sign in to comment.