|
@@ -73,7 +73,11 @@ import {
|
73
|
73
|
resizeLargeVideo
|
74
|
74
|
} from '../../react/features/large-video/actions.web';
|
75
|
75
|
import { toggleLobbyMode, setKnockingParticipantApproval } from '../../react/features/lobby/actions';
|
76
|
|
-import { isForceMuted } from '../../react/features/participants-pane/functions';
|
|
76
|
+import {
|
|
77
|
+ close as closeParticipantsPane,
|
|
78
|
+ open as openParticipantsPane
|
|
79
|
+} from '../../react/features/participants-pane/actions';
|
|
80
|
+import { getParticipantsPaneOpen, isForceMuted } from '../../react/features/participants-pane/functions';
|
77
|
81
|
import { RECORDING_TYPES } from '../../react/features/recording/constants';
|
78
|
82
|
import { getActiveSession } from '../../react/features/recording/functions';
|
79
|
83
|
import { isScreenAudioSupported } from '../../react/features/screen-share';
|
|
@@ -317,6 +321,12 @@ function initCommands() {
|
317
|
321
|
APP.store.dispatch(disable());
|
318
|
322
|
}
|
319
|
323
|
},
|
|
324
|
+ 'toggle-participants-pane': enabled => {
|
|
325
|
+ const toggleParticipantsPane = enabled
|
|
326
|
+ ? openParticipantsPane : closeParticipantsPane;
|
|
327
|
+
|
|
328
|
+ APP.store.dispatch(toggleParticipantsPane());
|
|
329
|
+ },
|
320
|
330
|
'toggle-raise-hand': () => {
|
321
|
331
|
const localParticipant = getLocalParticipant(APP.store.getState());
|
322
|
332
|
|
|
@@ -690,6 +700,10 @@ function initCommands() {
|
690
|
700
|
callback(isForceMuted(participant, type, state));
|
691
|
701
|
break;
|
692
|
702
|
}
|
|
703
|
+ case 'is-participants-pane-open': {
|
|
704
|
+ callback(getParticipantsPaneOpen(APP.store.getState()));
|
|
705
|
+ break;
|
|
706
|
+ }
|
693
|
707
|
case 'is-video-muted':
|
694
|
708
|
callback(APP.conference.isLocalVideoMuted());
|
695
|
709
|
break;
|