@@ -30,6 +30,7 @@ export const useSettingsStore = defineStore('settings', () => {
3030 const readStatusPrivacy = ref < PRIVACY_KEYS > ( loadState ( 'spreed' , 'read_status_privacy' , PRIVACY . PRIVATE ) )
3131 const typingStatusPrivacy = ref < PRIVACY_KEYS > ( loadState ( 'spreed' , 'typing_privacy' , PRIVACY . PRIVATE ) )
3232 const showMediaSettings = ref < boolean > ( BrowserStorage . getItem ( 'showMediaSettings' ) !== 'false' )
33+ const noiseSuppression = ref < boolean > ( BrowserStorage . getItem ( 'noiseSuppression' ) !== 'false' )
3334 const startWithoutMedia = ref < boolean | undefined > ( getTalkConfig ( 'local' , 'call' , 'start-without-media' ) )
3435 const blurVirtualBackgroundEnabled = ref < boolean | undefined > ( getTalkConfig ( 'local' , 'call' , 'blur-virtual-background' ) )
3536 const conversationsListStyle = ref < LIST_STYLE_OPTIONS | undefined > ( getTalkConfig ( 'local' , 'conversations' , 'list-style' ) )
@@ -68,6 +69,16 @@ export const useSettingsStore = defineStore('settings', () => {
6869 showMediaSettings . value = value
6970 }
7071
72+ /**
73+ * Update the noise suppression settings for the user
74+ *
75+ * @param value - new selected state
76+ */
77+ function setNoiseSuppression ( value : boolean ) {
78+ BrowserStorage . setItem ( 'noiseSuppression' , value . toString ( ) )
79+ noiseSuppression . value = value
80+ }
81+
7182 /**
7283 * Update the blur virtual background setting for the user
7384 *
@@ -122,6 +133,7 @@ export const useSettingsStore = defineStore('settings', () => {
122133 readStatusPrivacy,
123134 typingStatusPrivacy,
124135 showMediaSettings,
136+ noiseSuppression,
125137 startWithoutMedia,
126138 blurVirtualBackgroundEnabled,
127139 conversationsListStyle,
@@ -132,6 +144,7 @@ export const useSettingsStore = defineStore('settings', () => {
132144 updateReadStatusPrivacy,
133145 updateTypingStatusPrivacy,
134146 setShowMediaSettings,
147+ setNoiseSuppression,
135148 setBlurVirtualBackgroundEnabled,
136149 updateStartWithoutMedia,
137150 updateConversationsListStyle,
0 commit comments