diff --git a/front/src/Connexion/LocalUserStore.ts b/front/src/Connexion/LocalUserStore.ts index 8e0d6f07..fafeb10d 100644 --- a/front/src/Connexion/LocalUserStore.ts +++ b/front/src/Connexion/LocalUserStore.ts @@ -263,6 +263,10 @@ class LocalUserStore { } getCameraPrivacySettings() { + //if this setting doesn't exist in LocalUserStore, we set a default value + if (localStorage.getItem(cameraPrivacySettings) == null) { + localStorage.setItem(cameraPrivacySettings, "false"); + } return localStorage.getItem(cameraPrivacySettings) === "true"; } @@ -271,6 +275,10 @@ class LocalUserStore { } getMicrophonePrivacySettings() { + //if this setting doesn't exist in LocalUserStore, we set a default value + if (localStorage.getItem(microphonePrivacySettings) == null) { + localStorage.setItem(microphonePrivacySettings, "true"); + } return localStorage.getItem(microphonePrivacySettings) === "true"; }