Populate attachment file size

// FREEBIE
This commit is contained in:
lilia 2017-04-18 11:44:03 -07:00
parent fc514aa96f
commit 27a1c9f18a
4 changed files with 14 additions and 1 deletions

View file

@ -344,6 +344,9 @@ MessageReceiver.prototype.extend({
handleAttachment: function(attachment) {
attachment.id = attachment.id.toString();
attachment.key = attachment.key.toArrayBuffer();
if (attachment.size) {
attachment.size = attachment.size.toNumber();
}
if (attachment.digest) {
attachment.digest = attachment.digest.toArrayBuffer();
}