feat: add contacts to chats.set event

This commit is contained in:
Adhiraj Singh
2021-12-20 13:59:04 +05:30
parent e9d90aa0a5
commit 677f50baaa
4 changed files with 26 additions and 10 deletions

View File

@@ -26,7 +26,9 @@ const startSock = () => {
}
sock.ev.on('messages.upsert', async m => {
console.log(JSON.stringify(m, undefined, 2))
if(m.type === 'append' || m.type === 'notify') {
console.log(JSON.stringify(m, undefined, 2))
}
const msg = m.messages[0]
if(!msg.key.fromMe && m.type === 'notify') {