소스 검색

Disables chat when we are in recorder mode.

master
damencho 6 년 전
부모
커밋
c09eee0985
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      react/features/chat/middleware.js

+ 3
- 1
react/features/chat/middleware.js 파일 보기

@@ -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…
취소
저장