Add attachment digests
// FREEBIE
This commit is contained in:
@@ -338,10 +338,12 @@ MessageReceiver.prototype.extend({
|
||||
return textsecure.storage.get('blocked', []).indexOf(number) >= 0;
|
||||
},
|
||||
handleAttachment: function(attachment) {
|
||||
var digest = attachment.digest ? attachment.digest.toArrayBuffer() : undefined;
|
||||
function decryptAttachment(encrypted) {
|
||||
return textsecure.crypto.decryptAttachment(
|
||||
encrypted,
|
||||
attachment.key.toArrayBuffer()
|
||||
attachment.key.toArrayBuffer(),
|
||||
digest
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user