possible undefined jid fix

This commit is contained in:
Adhiraj Singh
2020-11-27 19:52:34 +05:30
parent a0a47145a6
commit a7d51f9831

View File

@@ -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 })
}
}
})