Skip to content

Commit

Permalink
fix(notifications): bug with older user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
QHivert committed Sep 1, 2023
1 parent 27c9dd3 commit 16af360
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions UI/WebServerResources/js/Preferences/PreferencesController.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
this.autocomplete = {forward: [], notification: []};
this.mailLabelKeyRE = new RegExp(/^(?!^_\$)[^(){} %*\"\\\\]*?$/);
this.emailSeparatorKeys = Preferences.defaults.emailSeparatorKeys;
if (!Preferences.defaults.Notification.notificationMessage)
this.preferences.defaults.Notification.notificationMessage = l('Notification Message', $window.defaultEmailAddresses);
this.preferences.defaults.Notification.notificationTranslated = l('Notification');
if(this.preferences.defaults.Notification) {
if (this.preferences.defaults.Notification.notificationMessage)
this.preferences.defaults.Notification.notificationMessage = l('Notification Message', $window.defaultEmailAddresses);
this.preferences.defaults.Notification.notificationTranslated = l('Notification');
}
if (Preferences.defaults.SOGoMailAutoMarkAsReadMode == 'delay')
this.mailAutoMarkAsReadDelay = Math.max(1, this.preferences.defaults.SOGoMailAutoMarkAsReadDelay);
else
Expand Down

0 comments on commit 16af360

Please sign in to comment.