Skip to content

Commit

Permalink
fix toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed Aug 2, 2024
1 parent dc4e4e8 commit 2d6907c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/public/metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildMajor":1,"buildMinor":125,"buildRevision":265,"buildTag":"dev","buildDate":"Fri Aug 02 2024","build":"1.125.265 dev"}
{"buildMajor":1,"buildMinor":125,"buildRevision":266,"buildTag":"dev","buildDate":"Fri Aug 02 2024","build":"1.125.266 dev"}
1 change: 0 additions & 1 deletion client/src/client/services/voice/VoiceModule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ export const VoiceModule = new class IVoiceModule {
restartVoiceChat() {
const currentPreferredMic = getGlobalState().settings.preferredMicId;
if (currentPreferredMic && this.isReady()) {
alert(currentPreferredMic);
this.changeInput(currentPreferredMic);
}
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/voice/ui/GeneralVoiceSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class GeneralVoiceSettings extends React.Component {
}

toggleSurroundSound() {
setGlobalState({ settings: { voiceEchoCancellation: !this.props.surroundSound } });
setGlobalState({ settings: { voicechatSurroundSound: !this.props.surroundSound } });

// update all peers
Object.keys(this.props.voiceState.peers).forEach((peerId) => {
Expand Down Expand Up @@ -163,7 +163,7 @@ class GeneralVoiceSettings extends React.Component {
value=""
className="sr-only peer"
id="enable-spatialaudio"
onChange={this.toggleSurroundSound}
onClick={this.toggleSurroundSound}
checked={this.props.surroundSound}
/>
<div
Expand Down
2 changes: 1 addition & 1 deletion client/src/metadata.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildMajor":1,"buildMinor":125,"buildRevision":265,"buildTag":"dev","buildDate":"Fri Aug 02 2024","build":"1.125.265 dev"}
{"buildMajor":1,"buildMinor":125,"buildRevision":266,"buildTag":"dev","buildDate":"Fri Aug 02 2024","build":"1.125.266 dev"}

0 comments on commit 2d6907c

Please sign in to comment.