add filename to return object when decrypting binary file
This commit is contained in:
parent
60fb6ba18d
commit
11a8a99aef
|
@ -193,7 +193,11 @@ function decryptMessage(privateKey, msg, params) {
|
|||
return execute(function() {
|
||||
msg = msg.decrypt(privateKey, sessionKeyAlgorithm);
|
||||
if(binary) {
|
||||
return msg.getLiteralData();
|
||||
var obj = {
|
||||
data: msg.getLiteralData(),
|
||||
filename: msg.filename
|
||||
};
|
||||
return obj;
|
||||
}
|
||||
else {
|
||||
return msg.getText();
|
||||
|
|
Loading…
Reference in New Issue
Block a user