소스 검색

feat (external_api) add command for kick participant

j8
hmuresan 4 년 전
부모
커밋
1a789130a3
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 4
    1
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 4
- 1
modules/API/API.js 파일 보기

@@ -14,7 +14,7 @@ import {
14 14
 } from '../../react/features/base/conference';
15 15
 import { parseJWTFromURLParams } from '../../react/features/base/jwt';
16 16
 import JitsiMeetJS, { JitsiRecordingConstants } from '../../react/features/base/lib-jitsi-meet';
17
-import { pinParticipant, getParticipantById } from '../../react/features/base/participants';
17
+import { pinParticipant, getParticipantById, kickParticipant } from '../../react/features/base/participants';
18 18
 import { setPrivateMessageRecipient } from '../../react/features/chat/actions';
19 19
 import {
20 20
     processExternalDeviceRequest
@@ -349,6 +349,9 @@ function initCommands() {
349 349
         },
350 350
         'cancel-private-chat': () => {
351 351
             APP.store.dispatch(setPrivateMessageRecipient());
352
+        },
353
+        'kick-participant': participantId => {
354
+            APP.store.dispatch(kickParticipant(participantId));
352 355
         }
353 356
     };
354 357
     transport.on('event', ({ data, name }) => {

+ 1
- 0
modules/API/external/external_api.js 파일 보기

@@ -35,6 +35,7 @@ const commands = {
35 35
     toggleLobby: 'toggle-lobby',
36 36
     hangup: 'video-hangup',
37 37
     intiatePrivateChat: 'initiate-private-chat',
38
+    kickParticipant: 'kick-participant',
38 39
     muteEveryone: 'mute-everyone',
39 40
     password: 'password',
40 41
     pinParticipant: 'pin-participant',

Loading…
취소
저장