Return filename for utf8 message

This commit is contained in:
Tankred Hase 2016-02-08 10:18:37 +07:00
parent f72b4522ad
commit 1405ec8d1c

View File

@ -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!');