mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Receive message bug fix
This commit is contained in:
@@ -117,8 +117,8 @@ module.exports = function(WhatsAppWeb) {
|
|||||||
}
|
}
|
||||||
this.handlers.onMessageStatusChanged (json[1].jid, json[1].index, type)
|
this.handlers.onMessageStatusChanged (json[1].jid, json[1].index, type)
|
||||||
}
|
}
|
||||||
} else if (json[1] === "message") {
|
} else if (json[0] === "message") {
|
||||||
this.onNewMessage( json[2][0][2] ) // handle this new message
|
this.onNewMessage(json[2]) // handle this new message
|
||||||
}
|
}
|
||||||
} else if (json[1].add === "before" || json[1].add === "last") {
|
} else if (json[1].add === "before" || json[1].add === "last") {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user