mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 12:09:15 +00:00
fix: dont modify id reference when serializing message
This commit is contained in:
@@ -332,7 +332,7 @@ exports.LoadUtils = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(typeof msg.id.remote === 'object') {
|
if(typeof msg.id.remote === 'object') {
|
||||||
msg.id.remote = msg.id.remote._serialized;
|
msg.id = Object.assign({}, msg.id, {remote: msg.id.remote._serialized});
|
||||||
}
|
}
|
||||||
|
|
||||||
delete msg.pendingAckUpdate;
|
delete msg.pendingAckUpdate;
|
||||||
|
|||||||
Reference in New Issue
Block a user