Return filename for utf8 message
This commit is contained in:
parent
f72b4522ad
commit
1405ec8d1c
|
@ -362,7 +362,8 @@ function parseMessage(message, format) {
|
||||||
};
|
};
|
||||||
} else if (format === 'utf8') {
|
} else if (format === 'utf8') {
|
||||||
return {
|
return {
|
||||||
data: message.getText()
|
data: message.getText(),
|
||||||
|
filename: message.getFilename()
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Invalid format!');
|
throw new Error('Invalid format!');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user