feat(sounds): add 'Play sound for every message' toggle to Voice settings
This commit is contained in:
@@ -11,6 +11,8 @@ export function VoicePanel() {
|
|||||||
const setRnnoiseEnabled = useVoiceStore((s) => s.setRnnoiseEnabled);
|
const setRnnoiseEnabled = useVoiceStore((s) => s.setRnnoiseEnabled);
|
||||||
const soundEffectVolume = useVoiceStore((s) => s.soundEffectVolume);
|
const soundEffectVolume = useVoiceStore((s) => s.soundEffectVolume);
|
||||||
const setSoundEffectVolume = useVoiceStore((s) => s.setSoundEffectVolume);
|
const setSoundEffectVolume = useVoiceStore((s) => s.setSoundEffectVolume);
|
||||||
|
const messageSoundAllChannels = useVoiceStore((s) => s.messageSoundAllChannels);
|
||||||
|
const setMessageSoundAllChannels = useVoiceStore((s) => s.setMessageSoundAllChannels);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-5">
|
<div className="space-y-5">
|
||||||
@@ -37,6 +39,15 @@ export function VoicePanel() {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex items-center justify-between py-2">
|
||||||
|
<div>
|
||||||
|
<div className="text-sm text-txt-primary">Play sound for every message</div>
|
||||||
|
<div className="text-xs text-txt-tertiary">
|
||||||
|
Off (default): only DMs and messages that mention you. On: every channel.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<Toggle enabled={messageSoundAllChannels} onChange={setMessageSoundAllChannels} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user