fix: node v12 support
This commit is contained in:
parent
d9ccb6f276
commit
40cec51956
1 changed files with 6 additions and 2 deletions
|
|
@ -265,7 +265,11 @@ exports.LoadUtils = () => {
|
|||
const msg = message.serialize();
|
||||
|
||||
msg.isStatusV3 = message.isStatusV3;
|
||||
msg.links = (message.getLinks()).map(link => ({ link: link.href, isSuspicious: link.suspiciousCharacters?.size ? true : false}));
|
||||
msg.links = (message.getLinks()).map(link => ({
|
||||
link: link.href,
|
||||
isSuspicious: Boolean(link.suspiciousCharacters && link.suspiciousCharacters.size)
|
||||
}));
|
||||
|
||||
if (msg.buttons) {
|
||||
msg.buttons = msg.buttons.serialize();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue