mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix in-memory-store contacts (#1420)
fix issue where fromJSON loads contacts from the wrong variable
This commit is contained in:
@@ -239,7 +239,7 @@ export default (
|
||||
|
||||
const fromJSON = (json: { chats: Chat[], contacts: { [id: string]: Contact }, messages: { [id: string]: WAMessage[] } }) => {
|
||||
chats.upsert(...json.chats)
|
||||
contactsUpsert(Object.values(contacts))
|
||||
contactsUpsert(Object.values(json.contacts))
|
||||
for(const jid in json.messages) {
|
||||
const list = assertMessageList(jid)
|
||||
for(const msg of json.messages[jid]) {
|
||||
|
||||
Reference in New Issue
Block a user