mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fixed promise bug
This commit is contained in:
@@ -186,13 +186,7 @@ module.exports = function(WhatsAppWeb) {
|
||||
// if this message is responding to a query
|
||||
if (this.callbacks[messageTag]) {
|
||||
const q = this.callbacks[messageTag]
|
||||
if (q.queryJSON[1] === "exist") {
|
||||
q.callback(json.status == 200, q.queryJSON[2])
|
||||
} else if (q.queryJSON[1] === "mediaConn") {
|
||||
q.callback(json.media_conn)
|
||||
} else {
|
||||
q.callback(json)
|
||||
}
|
||||
q.callback([json, q.queryJSON])
|
||||
delete this.callbacks[messageTag]
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user