mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
possible undefined jid fix
This commit is contained in:
@@ -49,7 +49,7 @@ export class WAConnection extends Base {
|
||||
if (oldChat.t !== chat.t || oldChat.modify_tag !== chat.modify_tag) {
|
||||
const changes = shallowChanges (oldChat, chat)
|
||||
delete changes.messages
|
||||
updatedChats.push({ jid: chat.jid, ...changes })
|
||||
updatedChats.push({ ...changes, jid: chat.jid })
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user