fix(e2ee) check if e2ee is supported before playing the sound

This commit is contained in:
tmoldovan8x8 2022-09-16 14:28:36 +03:00 committed by GitHub
parent 4c9f3d287a
commit 7509b520f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);