mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Not adding new message when update fails
This commit is contained in:
@@ -51,10 +51,8 @@ export class WAConnection extends Base {
|
|||||||
chat.messages.insert (message)
|
chat.messages.insert (message)
|
||||||
this.emit ('message-update', message)
|
this.emit ('message-update', message)
|
||||||
} else {
|
} else {
|
||||||
chat.messages.insert (message)
|
this.logger.debug ({ unhandled: true }, 'received message update for non-present message from ' + jid)
|
||||||
this.emit ('message-new', message)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
// If a user's contact has changed
|
// If a user's contact has changed
|
||||||
this.registerCallback (['action', null, 'user'], json => {
|
this.registerCallback (['action', null, 'user'], json => {
|
||||||
|
|||||||
Reference in New Issue
Block a user