mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added callback for delivery & read receipts + Bug Fix
This commit is contained in:
@@ -115,7 +115,9 @@ module.exports = function(WhatsAppWeb) {
|
||||
type = json[1].type
|
||||
break
|
||||
}
|
||||
this.handlers.onMessageStatusChanged (json[1].jid, json[1].index, type)
|
||||
if (this.handlers.onMessageStatusChanged) {
|
||||
this.handlers.onMessageStatusChanged (json[1].jid, json[1].index, type)
|
||||
}
|
||||
}
|
||||
} else if (json[0] === "message") {
|
||||
this.onNewMessage(json[2]) // handle this new message
|
||||
|
||||
Reference in New Issue
Block a user