mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-23 15:46:28 +08:00
fix(send-task): Update to use Message::participants
- Fix participants method signature for correct default params
This commit is contained in:
parent
11fb1aefdc
commit
991453f4dc
2 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ Message(date DESC) WHERE draft = 1`,
|
||||||
|
|
||||||
// Public: Returns a set of uniqued message participants by combining the
|
// Public: Returns a set of uniqued message participants by combining the
|
||||||
// `to`, `cc`, `bcc` && (optionally) `from` fields.
|
// `to`, `cc`, `bcc` && (optionally) `from` fields.
|
||||||
participants({includeFrom, includeBcc} = {includeFrom: true, includeBcc: false}) {
|
participants({includeFrom = true, includeBcc = false} = {}) {
|
||||||
const seen = {}
|
const seen = {}
|
||||||
const all = []
|
const all = []
|
||||||
let contacts = [].concat(this.to, this.cc)
|
let contacts = [].concat(this.to, this.cc)
|
||||||
|
|
|
@ -96,7 +96,7 @@ export default class SendDraftTask extends BaseDraftTask {
|
||||||
return this.createMessageFromResponse(responseJSON);
|
return this.createMessageFromResponse(responseJSON);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const recipients = this.message.to.concat(this.message.cc, this.message.bcc);
|
const recipients = this.message.participants({includeFrom: false, includeBcc: true})
|
||||||
recipients.forEach((recipient) => {
|
recipients.forEach((recipient) => {
|
||||||
const t1 = new MultiSendToIndividualTask({
|
const t1 = new MultiSendToIndividualTask({
|
||||||
message: this.message,
|
message: this.message,
|
||||||
|
|
Loading…
Reference in a new issue