Disables chat when we are in recorder mode.

This commit is contained in:
damencho
2019-04-29 14:36:22 +00:00
committed by Дамян Минков
parent b886f8d72d
commit c09eee0985
+3 -1
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;
}