summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-03-10 18:33:30 +0100
committerChristophe Simonis <chs@odoo.com>2015-03-10 18:33:30 +0100
commit9eccc71a14f31924896fbb09acfac13c90c50fc6 (patch)
treec8402ecc257f791582c26f961ce1ef800ede59ad /addons/mail/static/src/js
parentef020a257424ae9be06201dafe4bf5db66c8c5f5 (diff)
parentc0496ed03a28e062817dc89450ad77fdcbe30bc6 (diff)
[MERGE] forward port of branch 8.0 up to c0496ed
Diffstat (limited to 'addons/mail/static/src/js')
-rw-r--r--addons/mail/static/src/js/mail.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js
index d54ad6176b1..86fd68b7d49 100644
--- a/addons/mail/static/src/js/mail.js
+++ b/addons/mail/static/src/js/mail.js
@@ -800,7 +800,8 @@ openerp.mail = function (session) {
_.each(messages, function (thread) {
if (thread.author_id && !thread.author_id[0] &&
- !_.find(self.recipients, function (recipient) {return recipient.email_address == thread.author_id[3];})) {
+ !_.find(self.recipients, function (recipient) {return recipient.email_address == thread.author_id[3];}) &&
+ _.some([thread.author_id[1], thread.author_id[2], thread.author_id[3]])) {
self.recipients.push({ 'full_name': thread.author_id[1],
'name': thread.author_id[2],
'email_address': thread.author_id[3],