Enables all recording/livestreaming notifications in sip gw mode.

pull/5017/head jitsi-meet_4194
damencho 5 years ago committed by Дамян Минков
parent b8eda2b68d
commit 775c531fe7
  1. 2
      modules/UI/UI.js
  2. 8
      react/features/recording/middleware.js

@ -177,10 +177,10 @@ UI.start = function() {
// in case of iAmSipGateway keep local video visible
if (!config.iAmSipGateway) {
VideoLayout.setLocalVideoVisible(false);
APP.store.dispatch(setNotificationsEnabled(false));
}
APP.store.dispatch(setToolboxEnabled(false));
APP.store.dispatch(setNotificationsEnabled(false));
UI.messageHandler.enablePopups(false);
}
};

@ -127,7 +127,13 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
case RECORDING_SESSION_UPDATED: {
// When in recorder mode no notifications are shown
// or extra sounds are also not desired
if (getState()['features/base/config'].iAmRecorder) {
// but we want to indicate those in case of sip gateway
const {
iAmRecorder,
iAmSipGateway
} = getState()['features/base/config'];
if (iAmRecorder && !iAmSipGateway) {
break;
}

Loading…
Cancel
Save