fix: dont modify id reference when serializing message

This commit is contained in:
Pedro Lopez
2021-10-30 00:45:04 -04:00
parent d82cf448d9
commit 3aa0e4f7b3

View File

@@ -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;