diff --git a/react/features/invite/middleware.js b/react/features/invite/middleware.js index e6a29a348..59ed12eae 100644 --- a/react/features/invite/middleware.js +++ b/react/features/invite/middleware.js @@ -1,5 +1,7 @@ +import { CONFERENCE_JOINED } from '../base/conference'; import { MiddlewareRegistry } from '../base/redux'; +import { setInfoDialogVisibility } from './actions'; import { UPDATE_DIAL_IN_NUMBERS_FAILED } from './actionTypes'; const logger = require('jitsi-meet-logger').getLogger(__filename); @@ -15,6 +17,10 @@ MiddlewareRegistry.register(store => next => action => { const result = next(action); switch (action.type) { + case CONFERENCE_JOINED: + store.dispatch(setInfoDialogVisibility(true)); + break; + case UPDATE_DIAL_IN_NUMBERS_FAILED: logger.error( 'Error encountered while fetching dial-in numbers:', diff --git a/react/features/invite/reducer.js b/react/features/invite/reducer.js index 215c80bd6..cc4d1c2a0 100644 --- a/react/features/invite/reducer.js +++ b/react/features/invite/reducer.js @@ -7,10 +7,6 @@ import { } from './actionTypes'; const DEFAULT_STATE = { - - // By default show the info dialog when joining the conference. - infoDialogVisible: true, - numbersEnabled: true };