mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 19:49:16 +00:00
[-] Remove method to add extra serialized props. This does not work, and the prop being added was already included.
This commit is contained in:
@@ -17,23 +17,6 @@ class Base {
|
||||
}
|
||||
|
||||
_patch(data) { return data; }
|
||||
|
||||
/**
|
||||
* Name that represents this model in the WhatsApp Web Store
|
||||
* @readonly
|
||||
*/
|
||||
static get WAppModel() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Extra fields to add to model serialization
|
||||
* @readonly
|
||||
*/
|
||||
static get extraFields() {
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Base;
|
||||
@@ -60,16 +60,6 @@ class Message extends Base {
|
||||
|
||||
}, chatId, this.id._serialized, message);
|
||||
}
|
||||
|
||||
static get WAppModel() {
|
||||
return 'Msg';
|
||||
}
|
||||
|
||||
static get extraFields() {
|
||||
return [
|
||||
'isNewMsg'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Message;
|
||||
Reference in New Issue
Block a user