switches dropdown for checkboxes and adjusts wording

This commit is contained in:
Benedicte Quimbert
2022-03-21 18:39:20 +01:00
parent 40c0f06c8a
commit 4e5fb735bd
6 changed files with 306 additions and 281 deletions
+7 -13
View File
@@ -294,18 +294,13 @@ export const mediaStreamConstraintsStore = derived(
// Disable webcam for privacy reasons (the game is not visible and we were talking to no one)
if ($privacyShutdownStore === true) {
const userSetting = localUserStore.getPrivacySettings();
switch (userSetting) {
case "cameraEnabled":
currentAudioConstraint = false;
break;
case "microphoneEnabled":
currentVideoConstraint = false;
break;
case "noneEnabled":
currentVideoConstraint = false;
currentAudioConstraint = false;
break;
const userMicrophonePrivacySetting = localUserStore.getMicrophonePrivacySettings();
const userCameraPrivacySetting = localUserStore.getCameraPrivacySettings();
if (!userMicrophonePrivacySetting) {
currentAudioConstraint = false;
}
if (!userCameraPrivacySetting) {
currentVideoConstraint = false;
}
}
@@ -322,7 +317,6 @@ export const mediaStreamConstraintsStore = derived(
currentAudioConstraint = false;
}
// Let's make the changes only if the new value is different from the old one.
if (
previousComputedVideoConstraint != currentVideoConstraint ||