diff --git a/modules/API/API.js b/modules/API/API.js index 94cf46765..2f0ce13ba 100644 --- a/modules/API/API.js +++ b/modules/API/API.js @@ -21,6 +21,7 @@ import { import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox'; import { setE2EEKey } from '../../react/features/e2ee'; import { invite } from '../../react/features/invite'; +import { toggleLobbyMode } from '../../react/features/lobby/actions.web'; import { RECORDING_TYPES } from '../../react/features/recording/constants'; import { getActiveSession } from '../../react/features/recording/functions'; import { muteAllParticipants } from '../../react/features/remote-video-menu/actions'; @@ -89,6 +90,9 @@ function initCommands() { APP.store.dispatch(muteAllParticipants(localIds)); }, + 'toggle-lobby': isLobbyEnabled => { + APP.store.dispatch(toggleLobbyMode(isLobbyEnabled)); + }, 'password': password => { const { conference, passwordRequired } = APP.store.getState()['features/base/conference']; diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js index af38eb9bd..867303041 100644 --- a/modules/API/external/external_api.js +++ b/modules/API/external/external_api.js @@ -31,6 +31,7 @@ const commands = { displayName: 'display-name', e2eeKey: 'e2ee-key', email: 'email', + toggleLobby: 'toggle-lobby', hangup: 'video-hangup', muteEveryone: 'mute-everyone', password: 'password',