feat(notification): add custom message

This commit is contained in:
Hivert Quentin
2023-08-30 17:04:49 +02:00
parent acaddf5d4f
commit 6b647050fc
5 changed files with 21 additions and 3 deletions
@@ -20,6 +20,8 @@
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);
if (Preferences.defaults.SOGoMailAutoMarkAsReadMode == 'delay')
this.mailAutoMarkAsReadDelay = Math.max(1, this.preferences.defaults.SOGoMailAutoMarkAsReadDelay);
else
@@ -724,7 +726,7 @@
});
}
else {
recipient = contact.$shortFormat();
recipient = contact.$$email;
}
if (recipient)