Fix joining a locked room

This commit is contained in:
Lyubo Marinov 2018-05-29 23:12:09 -05:00
parent bbf505c076
commit 693b1c392f
1 changed files with 14 additions and 0 deletions

View File

@ -341,6 +341,20 @@ function _setPassword(state, { conference, method, password }) {
case conference.join: case conference.join:
if (state.passwordRequired === conference) { if (state.passwordRequired === conference) {
return assign(state, { return assign(state, {
// XXX 1. The JitsiConference which transitions away from
// passwordRequired MUST remain in the redux state
// features/base/conference until it transitions into
// conference; otherwise, there is a span of time during which
// the redux state does not even know that there is a
// JitsiConference whatsoever.
//
// 2. The redux action setPassword will attempt to join the
// JitsiConference so joining is an appropriate transitional
// redux state.
//
// 3. The redux action setPassword will perform the same check
// before it proceeds with the re-join.
joining: state.conference ? state.joining : conference,
locked: LOCKED_REMOTELY, locked: LOCKED_REMOTELY,
/** /**