mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +00:00
1 parent
bc8146ef5d
commit
5ff8463fba
2 files changed
+8
-3
No files matched your search
@@ -253,11 +253,15 @@
|
||||
function addRecipient(contact, field) {
|
||||
var recipients, recipient, list;
|
||||
|
||||
if (angular.isString(contact))
|
||||
return contact;
|
||||
|
||||
recipients = vm.message.editable[field];
|
||||
|
||||
if (angular.isString(contact)) {
|
||||
_.forEach(contact.split(/[,;]/), function(address) {
|
||||
recipients.push(address);
|
||||
});
|
||||
return null;
|
||||
}
|
||||
|
||||
if (contact.$isList({expandable: true})) {
|
||||
// If the list's members were already fetch, use them
|
||||
if (angular.isDefined(contact.refs) && contact.refs.length) {
|
||||
|
||||
Reference in new issue
Block a user