external_api: add ability to toggle lobby
This commit is contained in:
parent
52ce8031a3
commit
4bfc80ecb9
|
@ -21,6 +21,7 @@ import {
|
||||||
import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
|
import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
|
||||||
import { setE2EEKey } from '../../react/features/e2ee';
|
import { setE2EEKey } from '../../react/features/e2ee';
|
||||||
import { invite } from '../../react/features/invite';
|
import { invite } from '../../react/features/invite';
|
||||||
|
import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
|
||||||
import { RECORDING_TYPES } from '../../react/features/recording/constants';
|
import { RECORDING_TYPES } from '../../react/features/recording/constants';
|
||||||
import { getActiveSession } from '../../react/features/recording/functions';
|
import { getActiveSession } from '../../react/features/recording/functions';
|
||||||
import { muteAllParticipants } from '../../react/features/remote-video-menu/actions';
|
import { muteAllParticipants } from '../../react/features/remote-video-menu/actions';
|
||||||
|
@ -89,6 +90,9 @@ function initCommands() {
|
||||||
|
|
||||||
APP.store.dispatch(muteAllParticipants(localIds));
|
APP.store.dispatch(muteAllParticipants(localIds));
|
||||||
},
|
},
|
||||||
|
'toggle-lobby': isLobbyEnabled => {
|
||||||
|
APP.store.dispatch(toggleLobbyMode(isLobbyEnabled));
|
||||||
|
},
|
||||||
'password': password => {
|
'password': password => {
|
||||||
const { conference, passwordRequired }
|
const { conference, passwordRequired }
|
||||||
= APP.store.getState()['features/base/conference'];
|
= APP.store.getState()['features/base/conference'];
|
||||||
|
|
|
@ -31,6 +31,7 @@ const commands = {
|
||||||
displayName: 'display-name',
|
displayName: 'display-name',
|
||||||
e2eeKey: 'e2ee-key',
|
e2eeKey: 'e2ee-key',
|
||||||
email: 'email',
|
email: 'email',
|
||||||
|
toggleLobby: 'toggle-lobby',
|
||||||
hangup: 'video-hangup',
|
hangup: 'video-hangup',
|
||||||
muteEveryone: 'mute-everyone',
|
muteEveryone: 'mute-everyone',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
|
|
Loading…
Reference in New Issue