parent
38d4a26827
commit
e7c15a697d
|
@ -323,8 +323,12 @@
|
|||
Account.$log.debug('New message (edit): ' + JSON.stringify(data, undefined, 2));
|
||||
angular.extend(message.editable, data);
|
||||
message.isNew = true;
|
||||
if (options && options.mailto)
|
||||
message.$parseMailto(options.mailto);
|
||||
if (options && options.mailto) {
|
||||
if (angular.isObject(options.mailto))
|
||||
angular.extend(message.editable, options.mailto);
|
||||
else
|
||||
message.$parseMailto(options.mailto);
|
||||
}
|
||||
return message;
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue