mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix conversation result usage in loadEntireConversation
In loadEntireConversation, json was an array of [result, request], now it only takes result into account
This commit is contained in:
committed by
GitHub
parent
a109e321cb
commit
bc2889272f
@@ -102,7 +102,7 @@ module.exports = {
|
|||||||
|
|
||||||
const loadMessage = () => {
|
const loadMessage = () => {
|
||||||
return this.loadConversation(jid, chunkSize, offsetID, mostRecentFirst)
|
return this.loadConversation(jid, chunkSize, offsetID, mostRecentFirst)
|
||||||
.then (json => {
|
.then (([json]) => {
|
||||||
if (json[2]) {
|
if (json[2]) {
|
||||||
// callback with most recent message first (descending order of date)
|
// callback with most recent message first (descending order of date)
|
||||||
let lastMessage
|
let lastMessage
|
||||||
@@ -201,4 +201,4 @@ module.exports = {
|
|||||||
const json = ["query", "inviteCode", jid]
|
const json = ["query", "inviteCode", jid]
|
||||||
return this.query (json).then (([json, _]) => json.code)
|
return this.query (json).then (([json, _]) => json.code)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user