Переглянути джерело

external_api: add ability to toggle lobby

j8
Gabriel 5 роки тому
джерело
коміт
4bfc80ecb9
Аккаунт користувача з таким Email не знайдено
2 змінених файлів з 5 додано та 0 видалено
  1. 4
    0
      modules/API/API.js
  2. 1
    0
      modules/API/external/external_api.js

+ 4
- 0
modules/API/API.js Переглянути файл

21
 import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
21
 import { isEnabled as isDropboxEnabled } from '../../react/features/dropbox';
22
 import { setE2EEKey } from '../../react/features/e2ee';
22
 import { setE2EEKey } from '../../react/features/e2ee';
23
 import { invite } from '../../react/features/invite';
23
 import { invite } from '../../react/features/invite';
24
+import { toggleLobbyMode } from '../../react/features/lobby/actions.web';
24
 import { RECORDING_TYPES } from '../../react/features/recording/constants';
25
 import { RECORDING_TYPES } from '../../react/features/recording/constants';
25
 import { getActiveSession } from '../../react/features/recording/functions';
26
 import { getActiveSession } from '../../react/features/recording/functions';
26
 import { muteAllParticipants } from '../../react/features/remote-video-menu/actions';
27
 import { muteAllParticipants } from '../../react/features/remote-video-menu/actions';
89
 
90
 
90
             APP.store.dispatch(muteAllParticipants(localIds));
91
             APP.store.dispatch(muteAllParticipants(localIds));
91
         },
92
         },
93
+        'toggle-lobby': isLobbyEnabled => {
94
+            APP.store.dispatch(toggleLobbyMode(isLobbyEnabled));
95
+        },
92
         'password': password => {
96
         'password': password => {
93
             const { conference, passwordRequired }
97
             const { conference, passwordRequired }
94
                 = APP.store.getState()['features/base/conference'];
98
                 = APP.store.getState()['features/base/conference'];

+ 1
- 0
modules/API/external/external_api.js Переглянути файл

31
     displayName: 'display-name',
31
     displayName: 'display-name',
32
     e2eeKey: 'e2ee-key',
32
     e2eeKey: 'e2ee-key',
33
     email: 'email',
33
     email: 'email',
34
+    toggleLobby: 'toggle-lobby',
34
     hangup: 'video-hangup',
35
     hangup: 'video-hangup',
35
     muteEveryone: 'mute-everyone',
36
     muteEveryone: 'mute-everyone',
36
     password: 'password',
37
     password: 'password',

Завантаження…
Відмінити
Зберегти