Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/SettingsDialog/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default {
this.playSoundsLoading = true
try {
try {
await this.$store.dispatch('setPlaySounds', status)
await this.$store.dispatch('setPlaySounds', !this.playSounds)
} catch (e) {
showError(t('spreed', 'Failed to save sounds setting'))
}
Expand Down
2 changes: 1 addition & 1 deletion src/store/soundsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const actions = {
* @param {boolean} enabled Whether sounds should be played
*/
async setPlaySounds(context, enabled) {
await setPlaySounds(!context.state.userId, status)
await setPlaySounds(!context.state.userId, enabled)
context.commit('setPlaySounds', enabled)
},
}
Expand Down