Enables all recording/livestreaming notifications in sip gw mode.
This commit is contained in:
parent
b8eda2b68d
commit
775c531fe7
|
@ -177,10 +177,10 @@ UI.start = function() {
|
||||||
// in case of iAmSipGateway keep local video visible
|
// in case of iAmSipGateway keep local video visible
|
||||||
if (!config.iAmSipGateway) {
|
if (!config.iAmSipGateway) {
|
||||||
VideoLayout.setLocalVideoVisible(false);
|
VideoLayout.setLocalVideoVisible(false);
|
||||||
|
APP.store.dispatch(setNotificationsEnabled(false));
|
||||||
}
|
}
|
||||||
|
|
||||||
APP.store.dispatch(setToolboxEnabled(false));
|
APP.store.dispatch(setToolboxEnabled(false));
|
||||||
APP.store.dispatch(setNotificationsEnabled(false));
|
|
||||||
UI.messageHandler.enablePopups(false);
|
UI.messageHandler.enablePopups(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -127,7 +127,13 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
|
||||||
case RECORDING_SESSION_UPDATED: {
|
case RECORDING_SESSION_UPDATED: {
|
||||||
// When in recorder mode no notifications are shown
|
// When in recorder mode no notifications are shown
|
||||||
// or extra sounds are also not desired
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue