Browse Source

Fixes showing video after waiting for owner. Fixes #3671.

j8
damencho 6 years ago
parent
commit
4d440f5f64
2 changed files with 6 additions and 2 deletions
  1. 4
    1
      conference.js
  2. 2
    1
      react/features/base/conference/actions.js

+ 4
- 1
conference.js View File

@@ -347,7 +347,10 @@ class ConferenceConnector {
347 347
         // not enough rights to create conference
348 348
         case JitsiConferenceErrors.AUTHENTICATION_REQUIRED: {
349 349
             // Schedule reconnect to check if someone else created the room.
350
-            this.reconnectTimeout = setTimeout(() => room.join(), 5000);
350
+            this.reconnectTimeout = setTimeout(() => {
351
+                APP.store.dispatch(conferenceWillJoin(room));
352
+                room.join();
353
+            }, 5000);
351 354
 
352 355
             const { password }
353 356
                 = APP.store.getState()['features/base/conference'];

+ 2
- 1
react/features/base/conference/actions.js View File

@@ -382,10 +382,11 @@ export function createConference() {
382 382
  * @returns {Function}
383 383
  */
384 384
 export function checkIfCanJoin() {
385
-    return (dispatch: Dispatch<*>, getState: Function) => {
385
+    return (dispatch: Function, getState: Function) => {
386 386
         const { authRequired, password }
387 387
             = getState()['features/base/conference'];
388 388
 
389
+        authRequired && dispatch(_conferenceWillJoin(authRequired));
389 390
         authRequired && authRequired.join(password);
390 391
     };
391 392
 }

Loading…
Cancel
Save