feat: get links included in message (#457)
This commit is contained in:
parent
e2a642a81b
commit
8b101d1f3d
1 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue