Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

tmoldovan8x87509b520f389
diff --git a/react/features/e2ee/middleware.js b/react/features/e2ee/middleware.js
index fa07e72cd5..21e7dd78b1 100644
--- a/react/features/e2ee/middleware.js
+++ b/react/features/e2ee/middleware.js
@@ -189,7 +189,7 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
}
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'}`);
conference.toggleE2EE(action.enabled);