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() {
|
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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user