Browse Source

feat(room-lock): hide dialog when conference fails

master
Saúl Ibarra Corretgé 7 years ago
parent
commit
c86895ae13
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      react/features/room-lock/middleware.js

+ 5
- 0
react/features/room-lock/middleware.js View File

@@ -5,11 +5,13 @@ import {
5 5
     LOCK_STATE_CHANGED,
6 6
     SET_PASSWORD_FAILED
7 7
 } from '../base/conference';
8
+import { hideDialog } from '../base/dialog';
8 9
 import { JitsiConferenceErrors } from '../base/lib-jitsi-meet';
9 10
 import { MiddlewareRegistry } from '../base/redux';
10 11
 import UIEvents from '../../../service/UI/UIEvents';
11 12
 
12 13
 import { _openPasswordRequiredPrompt } from './actions';
14
+import { PasswordRequiredPrompt, RoomLockPrompt } from './components';
13 15
 
14 16
 declare var APP: Object;
15 17
 
@@ -38,6 +40,9 @@ MiddlewareRegistry.register(store => next => action => {
38 40
             if (error.recoverable) {
39 41
                 store.dispatch(_openPasswordRequiredPrompt(conference));
40 42
             }
43
+        } else {
44
+            store.dispatch(hideDialog(PasswordRequiredPrompt));
45
+            store.dispatch(hideDialog(RoomLockPrompt));
41 46
         }
42 47
         break;
43 48
     }

Loading…
Cancel
Save