diff --git a/client/public/metadata.json b/client/public/metadata.json index 2acf557c7..d5674ca3d 100644 --- a/client/public/metadata.json +++ b/client/public/metadata.json @@ -1 +1 @@ -{"buildMajor":1,"buildMinor":125,"buildRevision":266,"buildTag":"dev","buildDate":"Fri Aug 02 2024","build":"1.125.266 dev"} \ No newline at end of file +{"buildMajor":1,"buildMinor":125,"buildRevision":267,"buildTag":"dev","buildDate":"Thu Aug 22 2024","build":"1.125.267 dev"} \ No newline at end of file diff --git a/client/src/components/voice/VoiceSettings.jsx b/client/src/components/voice/VoiceSettings.jsx deleted file mode 100644 index 266ef7175..000000000 --- a/client/src/components/voice/VoiceSettings.jsx +++ /dev/null @@ -1,227 +0,0 @@ -import React from 'react'; -import { connect } from 'react-redux'; -import AdvancedVoiceSettings from './AdvancedVoiceSettings'; -import { setGlobalState } from '../../state/store'; -import { reRenderAllGainNodes } from '../../client/services/voice/VoiceModule'; -import { Tooltip } from '../tooltip/tooltip'; -import ExtraVoiceSettings from './ExtraVoiceSettings'; -import { msg } from '../../client/OpenAudioAppContainer'; -import { PipVector } from '../dpip/PipVector'; -import { VoiceMicButtonContent } from '../icons/VoiceMic'; -import { VoiceDeafenButtonContent } from '../icons/VoicechatDeafenButton'; - -class VoiceSettings extends React.Component { - constructor(props) { - super(props); - - this.state = { - advancedSettings: false, - }; - - this.onVolumeChange = this.onVolumeChange.bind(this); - this.toggleAdvancedSettings = this.toggleAdvancedSettings.bind(this); - this.toggleMicMute = this.toggleMicMute.bind(this); - this.togglePiP = this.togglePiP.bind(this); - this.toggleDeafen = this.toggleDeafen.bind(this); - } - - onVolumeChange(e) { - setGlobalState({ settings: { voicechatVolume: e.target.value } }); - reRenderAllGainNodes(); - - // were we deafened? then we need to unmute - if (this.props.voicechatDeafened) { - this.toggleDeafen(); - } - } - - togglePiP() { - setGlobalState({ settings: { voicePiPEnabled: !this.props.voicePiPEnabled } }); - } - - toggleAdvancedSettings() { - this.setState({ advancedSettings: !this.state.advancedSettings }); - } - - toggleMicMute() { - const muted = !this.props.voicechatMuted; - setGlobalState({ settings: { voicechatMuted: muted } }); - } - - toggleDeafen() { - const deafened = !this.props.voicechatDeafened; - setGlobalState({ settings: { voicechatDeafened: deafened }, voiceState: { deafenedBefore: true } }); - } - - render() { - // are we moderating? then only show that banner - if (this.props.voiceState.isModerating) { - return ( -
- {msg('vc.youAreModerating')} -
-