fix(e2ee) check if e2ee is supported before playing the sound
This commit is contained in:
parent
4c9f3d287a
commit
7509b520f3
|
@ -189,7 +189,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
|
||||||
}
|
}
|
||||||
|
|
||||||
case TOGGLE_E2EE: {
|
case TOGGLE_E2EE: {
|
||||||
if (conference && conference.isE2EEEnabled() !== action.enabled) {
|
if (conference && conference.isE2EESupported() && conference.isE2EEEnabled() !== action.enabled) {
|
||||||
logger.debug(`E2EE will be ${action.enabled ? 'enabled' : 'disabled'}`);
|
logger.debug(`E2EE will be ${action.enabled ? 'enabled' : 'disabled'}`);
|
||||||
conference.toggleE2EE(action.enabled);
|
conference.toggleE2EE(action.enabled);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue