|
@@ -23,6 +23,7 @@ import {
|
23
|
23
|
pinParticipant,
|
24
|
24
|
kickParticipant
|
25
|
25
|
} from '../../react/features/base/participants';
|
|
26
|
+import { updateSettings } from '../../react/features/base/settings';
|
26
|
27
|
import { isToggleCameraEnabled, toggleCamera } from '../../react/features/base/tracks';
|
27
|
28
|
import { setPrivateMessageRecipient } from '../../react/features/chat/actions';
|
28
|
29
|
import { openChat } from '../../react/features/chat/actions.web';
|
|
@@ -177,6 +178,12 @@ function initCommands() {
|
177
|
178
|
|
178
|
179
|
APP.store.dispatch(toggleCamera());
|
179
|
180
|
},
|
|
181
|
+ 'toggle-camera-mirror': () => {
|
|
182
|
+ const state = APP.store.getState();
|
|
183
|
+ const { localFlipX: currentFlipX } = state['features/base/settings'];
|
|
184
|
+
|
|
185
|
+ APP.store.dispatch(updateSettings({ localFlipX: !currentFlipX }));
|
|
186
|
+ },
|
180
|
187
|
'toggle-chat': () => {
|
181
|
188
|
sendAnalytics(createApiEvent('chat.toggled'));
|
182
|
189
|
APP.UI.toggleChat();
|