fix: remove serialization on already deserialized object (#3350)

This commit is contained in:
alechkos 2025-05-30 15:50:02 +03:00 • committed by GitHub
commit 0d040611e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1021,9 +1021,8 @@ exports.LoadUtils = () => {
};
window.WWebJS.getStatusModel = status => {
let res = status.serialize();
const res = status.serialize();
delete res._msgs;
res.msgs = status._msgs.map(msg => window.WWebJS.getMessageModel(msg));
return res;
};