diff options
Diffstat (limited to 'web-ui/app/js/mail_view/ui')
-rw-r--r-- | web-ui/app/js/mail_view/ui/recipients/recipients_input.js | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js index 8f647d01..78114a39 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js @@ -44,17 +44,7 @@ define([ self; var extractContactNames = function (response) { - return _.flatten(response.contacts, function (contact) { - var filterCriteria = contact.name ? - function (e) { - return { value: contact.name + ' <' + e + '>' }; - } : - function (e) { - return { value: e }; - }; - - return _.map(contact.addresses, filterCriteria); - }); + return _.map(response, function(a) { return { value: a } }); }; function createEmailCompleter() { @@ -70,9 +60,7 @@ define([ filter: extractContactNames } }); - if (features.isEnabled('contacts')) { - emailCompleter.initialize(); - } + emailCompleter.initialize(); return emailCompleter; } |