Skip to content

Commit

Permalink
Fix attachment size
Browse files Browse the repository at this point in the history
This is already a number.

// FREEBIE
  • Loading branch information
liliakai committed Apr 19, 2017
1 parent c98ec91 commit 6b531ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions js/libtextsecure.js
Expand Up @@ -38538,9 +38538,6 @@ 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();
}
Expand Down
3 changes: 0 additions & 3 deletions libtextsecure/message_receiver.js
Expand Up @@ -344,9 +344,6 @@ 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();
}
Expand Down

0 comments on commit 6b531ad

Please sign in to comment.