Merge pull request #35 from banilaste/load-entire-conversation-fix

fix conversation result usage in loadEntireConversation
This commit is contained in:
Adhiraj Singh
2020-06-15 17:37:26 +05:30
committed by GitHub

View File

@@ -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)
}
}
}