diff --git a/js/sendmessage.js b/js/sendmessage.js index 33cb88ff..5a1b8c33 100644 --- a/js/sendmessage.js +++ b/js/sendmessage.js @@ -200,7 +200,7 @@ window.textsecure.messaging = function() { var iv = textsecure.crypto.getRandomBytes(16); return textsecure.crypto.encryptAttachment(attachment.data, proto.key, iv).then(function(encryptedBin) { return textsecure.api.putAttachment(encryptedBin).then(function(id) { - proto.id = dcodeIO.Long.fromString(id); + proto.id = id; proto.contentType = attachment.contentType; return proto; });