fix(rn) add default value when retrieving e2ee redux state

pull/10010/head jitsi-meet_6372
titus.moldovan 4 years ago committed by Saúl Ibarra Corretgé
parent 19e7f07b32
commit 554e2eeb11
  1. 2
      react/features/base/participants/middleware.js

@ -337,7 +337,7 @@ StateListenerRegistry.register(
function _e2eeUpdated({ getState, dispatch }, conference, participantId, newValue) {
const e2eeEnabled = newValue === 'true';
const { maxMode } = getState()['features/e2ee'];
const { maxMode } = getState()['features/e2ee'] || {};
if (maxMode !== MAX_MODE.THRESHOLD_EXCEEDED || !e2eeEnabled) {
dispatch(toggleE2EE(e2eeEnabled));

Loading…
Cancel
Save