Просмотр исходного кода

feat (external_api) add command for kick participant

j8
hmuresan 4 лет назад
Родитель
Сommit
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',

Загрузка…
Отмена
Сохранить