feat (external_api) add command for kick participant
This commit is contained in:
parent
16b00dc2af
commit
1a789130a3
|
@ -14,7 +14,7 @@ import {
|
||||||
} from '../../react/features/base/conference';
|
} from '../../react/features/base/conference';
|
||||||
import { parseJWTFromURLParams } from '../../react/features/base/jwt';
|
import { parseJWTFromURLParams } from '../../react/features/base/jwt';
|
||||||
import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
|
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 { setPrivateMessageRecipient } from '../../react/features/chat/actions';
|
||||||
import {
|
import {
|
||||||
processExternalDeviceRequest
|
processExternalDeviceRequest
|
||||||
|
@ -349,6 +349,9 @@ function initCommands() {
|
||||||
},
|
},
|
||||||
'cancel-private-chat': () => {
|
'cancel-private-chat': () => {
|
||||||
APP.store.dispatch(setPrivateMessageRecipient());
|
APP.store.dispatch(setPrivateMessageRecipient());
|
||||||
|
},
|
||||||
|
'kick-participant': participantId => {
|
||||||
|
APP.store.dispatch(kickParticipant(participantId));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
transport.on('event', ({ data, name }) => {
|
transport.on('event', ({ data, name }) => {
|
||||||
|
|
|
@ -35,6 +35,7 @@ const commands = {
|
||||||
toggleLobby: 'toggle-lobby',
|
toggleLobby: 'toggle-lobby',
|
||||||
hangup: 'video-hangup',
|
hangup: 'video-hangup',
|
||||||
intiatePrivateChat: 'initiate-private-chat',
|
intiatePrivateChat: 'initiate-private-chat',
|
||||||
|
kickParticipant: 'kick-participant',
|
||||||
muteEveryone: 'mute-everyone',
|
muteEveryone: 'mute-everyone',
|
||||||
password: 'password',
|
password: 'password',
|
||||||
pinParticipant: 'pin-participant',
|
pinParticipant: 'pin-participant',
|
||||||
|
|
Loading…
Reference in New Issue