add filename to return object when decrypting binary file

This commit is contained in:
Bart Butler 2015-04-07 09:54:22 -07:00 committed by Tankred Hase
parent 60fb6ba18d
commit 11a8a99aef

View File

@ -193,7 +193,11 @@ function decryptMessage(privateKey, msg, params) {
return execute(function() { return execute(function() {
msg = msg.decrypt(privateKey, sessionKeyAlgorithm); msg = msg.decrypt(privateKey, sessionKeyAlgorithm);
if(binary) { if(binary) {
return msg.getLiteralData(); var obj = {
data: msg.getLiteralData(),
filename: msg.filename
};
return obj;
} }
else { else {
return msg.getText(); return msg.getText();