Fix bug on invalid recipient

Fix bug where when an invalid recipient is chosen, the validation produces an error due to a wrong return value.
This commit is contained in:
Janosch Braukmann 2023-11-27 20:55:03 +01:00 committed by GitHub
parent 59cb1b1dbb
commit b39ac92724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,7 +315,7 @@ export class DraftEditingSession extends MailspringStore {
}
if (recipientErrors.length > 0) {
return { errors: recipientErrors, warnings: recipientWarnings };
return { recipientErrors: recipientErrors, recipientWarnings: recipientWarnings };
}
let cleaned = QuotedHTMLTransformer.removeQuotedHTML(this._draft.body.trim());