Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

external_api: add ability to toggle lobby

Gabriel4bfc80ecb913
diff --git a/modules/API/API.js b/modules/API/API.js
index 94cf467656..2f0ce13baa 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 af38eb9bda..8673030410 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',