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)
|
||||
this.emit ('message-update', message)
|
||||
} else {
|
||||
chat.messages.insert (message)
|
||||
this.emit ('message-new', message)
|
||||
this.logger.debug ({ unhandled: true }, 'received message update for non-present message from ' + jid)
|
||||
}
|
||||
|
||||
})
|
||||
// If a user's contact has changed
|
||||
this.registerCallback (['action', null, 'user'], json => {
|
||||
|
||||
Reference in New Issue
Block a user