From c86895ae13a327bd85127df5ebca20f2909383e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 28 Nov 2017 15:45:29 +0100 Subject: [PATCH] feat(room-lock): hide dialog when conference fails --- react/features/room-lock/middleware.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/react/features/room-lock/middleware.js b/react/features/room-lock/middleware.js index b0b82356f..23959f22c 100644 --- a/react/features/room-lock/middleware.js +++ b/react/features/room-lock/middleware.js @@ -5,11 +5,13 @@ import { LOCK_STATE_CHANGED, SET_PASSWORD_FAILED } from '../base/conference'; +import { hideDialog } from '../base/dialog'; import { JitsiConferenceErrors } from '../base/lib-jitsi-meet'; import { MiddlewareRegistry } from '../base/redux'; import UIEvents from '../../../service/UI/UIEvents'; import { _openPasswordRequiredPrompt } from './actions'; +import { PasswordRequiredPrompt, RoomLockPrompt } from './components'; declare var APP: Object; @@ -38,6 +40,9 @@ MiddlewareRegistry.register(store => next => action => { if (error.recoverable) { store.dispatch(_openPasswordRequiredPrompt(conference)); } + } else { + store.dispatch(hideDialog(PasswordRequiredPrompt)); + store.dispatch(hideDialog(RoomLockPrompt)); } break; }