chore: Clean up

This commit is contained in:
iamsivin
2024-08-08 19:50:21 +05:30
parent e09fceffc9
commit 88cb3fc76a
@@ -92,7 +92,7 @@ export default {
await this.updateUISettings({
enable_audio_alerts: this.audioAlert,
});
await this.updateAudioAlertInstanceValues();
this.updateAudioAlertInstanceValues();
useAlert(this.$t('PROFILE_SETTINGS.FORM.API.UPDATE_SUCCESS'));
},
async handleAudioAlertConditions(id, value) {
@@ -100,18 +100,18 @@ export default {
await this.updateUISettings({
always_play_audio_alert: !value,
});
await this.updateAudioAlertInstanceValues();
this.updateAudioAlertInstanceValues();
} else if (id === 'conversations_are_read') {
await this.updateUISettings({
alert_if_unread_assigned_conversation_exist: value,
});
await this.updateAudioAlertInstanceValues();
this.updateAudioAlertInstanceValues();
}
useAlert(this.$t('PROFILE_SETTINGS.FORM.API.UPDATE_SUCCESS'));
},
async handleAudioToneChange(value) {
await this.updateUISettings({ notification_tone: value });
await this.updateAudioAlertInstanceValues();
this.updateAudioAlertInstanceValues();
useAlert(this.$t('PROFILE_SETTINGS.FORM.API.UPDATE_SUCCESS'));
},
},