Ensure outgoing attachment size always matches resized image

pull/272/head
Scott Nonnenberg 6 years ago
parent 2c3847affe
commit 1b9959aca3

@ -523,9 +523,11 @@
return new Promise((resolve, reject) => {
const FR = new FileReader();
FR.onload = e => {
const data = e.target.result;
resolve({
...attachment,
data: e.target.result,
data,
size: data.byteLength,
});
};
FR.onerror = reject;

Loading…
Cancel
Save