feat: get links included in message (#457)

This commit is contained in:
Pedro S. Lopez
2020-12-25 19:08:25 -04:00
parent e2a642a81b
commit 8b101d1f3d
3 changed files with 13 additions and 0 deletions

View File

@@ -250,11 +250,16 @@ exports.LoadUtils = () => {
window.WWebJS.getMessageModel = message => {
const msg = message.serialize();
msg.isStatusV3 = message.isStatusV3;
msg.links = (message.getLinks()).map(link => link.href);
if (msg.buttons) {
msg.buttons = msg.buttons.serialize();
}
delete msg.pendingAckUpdate;
return msg;
};