ソースを参照

Fix joining a locked room

j8
Lyubo Marinov 7年前
コミット
693b1c392f
1個のファイルの変更14行の追加0行の削除
  1. 14
    0
      react/features/base/conference/reducer.js

+ 14
- 0
react/features/base/conference/reducer.js ファイルの表示

341
     case conference.join:
341
     case conference.join:
342
         if (state.passwordRequired === conference) {
342
         if (state.passwordRequired === conference) {
343
             return assign(state, {
343
             return assign(state, {
344
+                // XXX 1. The JitsiConference which transitions away from
345
+                // passwordRequired MUST remain in the redux state
346
+                // features/base/conference until it transitions into
347
+                // conference; otherwise, there is a span of time during which
348
+                // the redux state does not even know that there is a
349
+                // JitsiConference whatsoever.
350
+                //
351
+                // 2. The redux action setPassword will attempt to join the
352
+                // JitsiConference so joining is an appropriate transitional
353
+                // redux state.
354
+                //
355
+                // 3. The redux action setPassword will perform the same check
356
+                // before it proceeds with the re-join.
357
+                joining: state.conference ? state.joining : conference,
344
                 locked: LOCKED_REMOTELY,
358
                 locked: LOCKED_REMOTELY,
345
 
359
 
346
                 /**
360
                 /**

読み込み中…
キャンセル
保存