Receive message bug fix

This commit is contained in:
Adhiraj
2020-05-09 19:44:43 +05:30
parent eb7387b6fb
commit 26f53f8b61

View File

@@ -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") {
/* /*