Browse Source

Disables chat when we are in recorder mode.

master
damencho 6 years ago
parent
commit
c09eee0985
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      react/features/chat/middleware.js

+ 3
- 1
react/features/chat/middleware.js View File

@@ -96,9 +96,11 @@ StateListenerRegistry.register(
96 96
  */
97 97
 function _addChatMsgListener(conference, { dispatch, getState }) {
98 98
     if ((typeof interfaceConfig === 'object' && interfaceConfig.filmStripOnly)
99
-        || (typeof APP !== 'undefined' && !isButtonEnabled('chat'))) {
99
+        || (typeof APP !== 'undefined' && !isButtonEnabled('chat'))
100
+        || getState()['features/base/config'].iAmRecorder) {
100 101
         // We don't register anything on web if we're in filmStripOnly mode, or
101 102
         // the chat button is not enabled in interfaceConfig.
103
+        // or we are in iAmRecorder mode
102 104
         return;
103 105
     }
104 106
 

Loading…
Cancel
Save