Disables chat when we are in recorder mode.

This commit is contained in:
damencho 2019-04-29 14:58:28 +01:00 committed by Дамян Минков
parent b886f8d72d
commit c09eee0985
1 changed files with 3 additions and 1 deletions

View File

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