mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 12:09:15 +00:00
[ADD] Disconnected event
This commit is contained in:
@@ -20,7 +20,8 @@ exports.Events = {
|
||||
AUTHENTICATED: 'authenticated',
|
||||
READY: 'ready',
|
||||
MESSAGE_CREATE: 'message',
|
||||
QR_RECEIVED: 'qr'
|
||||
QR_RECEIVED: 'qr',
|
||||
DISCONNECTED: 'disconnected'
|
||||
}
|
||||
|
||||
exports.MessageTypes = {
|
||||
|
||||
@@ -53,7 +53,6 @@ exports.ExposeStore = () => {
|
||||
* Adds extra props to the serialization of a model
|
||||
*/
|
||||
exports.LoadExtraProps = (model, props) => {
|
||||
console.log(model, props);
|
||||
Store[model].models[0].__props = Store[model].models[0].__props.concat(props);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user