external_api: add ability to toggle lobby

This commit is contained in:
Gabriel 2020-07-23 16:03:53 +02:00 committed by GitHub
parent 52ce8031a3
commit 4bfc80ecb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -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'];

View File

@ -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',