Move attachment/websocket [en|de]cryption to libtextsecure

This commit is contained in:
Matt Corallo 2015-01-15 18:11:08 -10:00 committed by lilia
parent a9617068a2
commit 403ae4376d
7 changed files with 88 additions and 56 deletions

View file

@ -137,7 +137,7 @@ var handleAttachment = function(attachment) {
}
function decryptAttachment(encrypted) {
return textsecure.protocol.decryptAttachment(
return textsecure.crypto.decryptAttachment(
encrypted,
attachment.key.toArrayBuffer()
);