mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 08:16:09 +08:00
[local-sync] Include from field in thread participants
This commit is contained in:
parent
c7bec7150a
commit
040426e80a
|
@ -76,9 +76,9 @@ module.exports = (sequelize, Sequelize) => {
|
|||
}
|
||||
|
||||
// Update thread participants
|
||||
const {to, cc, bcc} = message;
|
||||
const {to, cc, bcc, from} = message;
|
||||
const participantEmails = this.participants.map(contact => contact.email);
|
||||
const newParticipants = to.concat(cc, bcc).filter(contact => {
|
||||
const newParticipants = to.concat(cc, bcc, from).filter(contact => {
|
||||
if (participantEmails.includes(contact.email)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue