diff --git a/WhatsAppWeb.Query.js b/WhatsAppWeb.Query.js index 850f5ff..14fdbff 100644 --- a/WhatsAppWeb.Query.js +++ b/WhatsAppWeb.Query.js @@ -102,7 +102,7 @@ module.exports = { const loadMessage = () => { return this.loadConversation(jid, chunkSize, offsetID, mostRecentFirst) - .then (json => { + .then (([json]) => { if (json[2]) { // callback with most recent message first (descending order of date) let lastMessage @@ -201,4 +201,4 @@ module.exports = { const json = ["query", "inviteCode", jid] return this.query (json).then (([json, _]) => json.code) } -} \ No newline at end of file +}