Move attachment processing closer to sending

This helps ensure processing happens uniformly, regardless of which code paths
are taken to send an attachment.
This commit is contained in:
Daniel Gasienica
2018-02-13 12:31:16 -05:00
parent 532ac3e273
commit d70d70e52c
2 changed files with 19 additions and 6 deletions

View File

@@ -216,8 +216,7 @@
return this.autoScale(file)
.then(this.readFile)
.then(setFlags(attachmentFlags))
.then(Attachment.process);
.then(setFlags(attachmentFlags));
},
/* jshint ignore:end */
/* eslint-disable */