Browse Source

fix(info): show dialog after joining the conference

Delay showing the dialog until after joining the conference
instead of as soon as possible. This resolves a few issues.
One is the dialog displaying right before the permissions
overlay is shown. Another is that logically it does not
make sense to show the invite options when unable to invite.
It also sidesteps the initial react UI bootstrapping that
can cause race conditions with toolbar re-renders causing
misalignment. Lastly, it prepares prematurely for what I
assume will be changes for when the info dialog will
actually be shown automatically.
j8
Leonard Kim 8 years ago
parent
commit
f539240840
2 changed files with 6 additions and 4 deletions
  1. 6
    0
      react/features/invite/middleware.js
  2. 0
    4
      react/features/invite/reducer.js

+ 6
- 0
react/features/invite/middleware.js View File

@@ -1,5 +1,7 @@
1
+import { CONFERENCE_JOINED } from '../base/conference';
1 2
 import { MiddlewareRegistry } from '../base/redux';
2 3
 
4
+import { setInfoDialogVisibility } from './actions';
3 5
 import { UPDATE_DIAL_IN_NUMBERS_FAILED } from './actionTypes';
4 6
 
5 7
 const logger = require('jitsi-meet-logger').getLogger(__filename);
@@ -15,6 +17,10 @@ MiddlewareRegistry.register(store => next => action => {
15 17
     const result = next(action);
16 18
 
17 19
     switch (action.type) {
20
+    case CONFERENCE_JOINED:
21
+        store.dispatch(setInfoDialogVisibility(true));
22
+        break;
23
+
18 24
     case UPDATE_DIAL_IN_NUMBERS_FAILED:
19 25
         logger.error(
20 26
             'Error encountered while fetching dial-in numbers:',

+ 0
- 4
react/features/invite/reducer.js View File

@@ -7,10 +7,6 @@ import {
7 7
 } from './actionTypes';
8 8
 
9 9
 const DEFAULT_STATE = {
10
-
11
-    // By default show the info dialog when joining the conference.
12
-    infoDialogVisible: true,
13
-
14 10
     numbersEnabled: true
15 11
 };
16 12
 

Loading…
Cancel
Save