From 7509b520f3897a7c8d8c597a01471254ca95eb14 Mon Sep 17 00:00:00 2001 From: tmoldovan8x8 <62697631+tmoldovan8x8@users.noreply.github.com> Date: Fri, 16 Sep 2022 14:28:36 +0300 Subject: [PATCH] fix(e2ee) check if e2ee is supported before playing the sound --- react/features/e2ee/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/e2ee/middleware.js b/react/features/e2ee/middleware.js index fa07e72cd..21e7dd78b 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);