Populate attachment file size
// FREEBIE
This commit is contained in:
parent
fc514aa96f
commit
27a1c9f18a
4 changed files with 14 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue