mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-02 10:05:26 +00:00
fix(mail(js)): avoid exception when adding duplicated recipient
This commit is contained in:
@@ -355,7 +355,9 @@
|
||||
i = recipients.indexOf(contact);
|
||||
recipients.splice(i, 1);
|
||||
for (j = 0; j < contact.members.length; j++) {
|
||||
recipients.splice(i + j, 0, contact.members[j].$shortFormat());
|
||||
var recipient = contact.members[j].$shortFormat();
|
||||
if (recipients.indexOf(recipient) < 0)
|
||||
recipients.splice(i + j, 0, contact.members[j].$shortFormat());
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user