Update 4.Events.ts

This commit is contained in:
Adhiraj Singh
2021-04-25 19:22:00 +05:30
parent 15ff592534
commit 5dfeaf75b0

View File

@@ -63,7 +63,7 @@ export class WAConnection extends Base {
chat.count = +chat.count
chat.messages = newMessagesDB()
// chats data (log json to see what it looks like)
chats.insert(chat)
chats.insertIfAbsent(chat)
})
this.logger.info (`received ${json[2].length} chats`)