mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-09 05:25:26 +00:00
feat(mail(js)): new button to expand recipients that are LDAP groups
Copy all object attributes when cloning the Message object in the popup view. Fixes #4902
This commit is contained in:
@@ -827,9 +827,10 @@
|
||||
*/
|
||||
Message.prototype.$omit = function(options) {
|
||||
var message = {},
|
||||
privateAttributes = options && options.privateAttributes;
|
||||
angular.forEach(this.editable, function(value, key) {
|
||||
if (_.includes(['to', 'cc', 'bcc'], key)) {
|
||||
privateAttributes = options && options.privateAttributes,
|
||||
source = privateAttributes ? this : this.editable;
|
||||
angular.forEach(source, function(value, key) {
|
||||
if (_.includes(['to', 'cc', 'bcc'], key) && !privateAttributes) {
|
||||
message[key] = _.map(value, function (addr) {
|
||||
return addr.toString();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user