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

This commit is contained in:
damencho 2019-01-19 23:53:05 +00:00 committed by Дамян Минков
parent 10624e87f5
commit 4d440f5f64
2 changed files with 6 additions and 2 deletions

View File

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

View File

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