mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Deprecated message-new & message-update + fix presence update for groups
The chat-update event is fired now when a message is received/updated
This commit is contained in:
@@ -189,7 +189,7 @@ export class WAConnection extends Base {
|
||||
chat.jid = Utils.whatsappID (chat.jid)
|
||||
chat.t = +chat.t
|
||||
chat.count = +chat.count
|
||||
chat.messages = new KeyedDB (Utils.waMessageKey, Utils.WA_MESSAGE_ID)
|
||||
chat.messages = Utils.newMessagesDB()
|
||||
|
||||
// chats data (log json to see what it looks like)
|
||||
!chats.get (chat.jid) && chats.insert (chat)
|
||||
|
||||
Reference in New Issue
Block a user