Skip to content

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

feat (external_api) add command for kick participant

hmuresan1a789130a3b0
diff --git a/modules/API/API.js b/modules/API/API.js
index 5bd918aa33..8d5a2d4a8e 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -14,7 +14,7 @@ import {
} from '../../react/features/base/conference';
import { parseJWTFromURLParams } from '../../react/features/base/jwt';
import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
-import { pinParticipant, getParticipantById } from '../../react/features/base/participants';
+import { pinParticipant, getParticipantById, kickParticipant } from '../../react/features/base/participants';
import { setPrivateMessageRecipient } from '../../react/features/chat/actions';
import {
processExternalDeviceRequest
@@ -349,6 +349,9 @@ function initCommands() {
},
'cancel-private-chat': () => {
APP.store.dispatch(setPrivateMessageRecipient());
+ },
+ 'kick-participant': participantId => {
+ APP.store.dispatch(kickParticipant(participantId));
}
};
transport.on('event', ({ data, name }) => {
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index 4ede252dfd..a728afae55 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -35,6 +35,7 @@ const commands = {
toggleLobby: 'toggle-lobby',
hangup: 'video-hangup',
intiatePrivateChat: 'initiate-private-chat',
+ kickParticipant: 'kick-participant',
muteEveryone: 'mute-everyone',
password: 'password',
pinParticipant: 'pin-participant',