bug fixes

This commit is contained in:
Adhiraj Singh
2021-07-17 00:23:07 +05:30
parent e65f060664
commit 9ea23a2d12
4 changed files with 19 additions and 14 deletions

View File

@@ -263,14 +263,13 @@ const makeChatsSocket = (config: SocketConfig) => {
jid,
count: count.toString(),
index: fromMessage.id,
owner: fromMessage.fromMe ? 'true' : 'false',
participant: fromMessage.participant
owner: fromMessage.fromMe ? 'true' : 'false'
}
)
],
[ WAMetric.read, WAFlag.ignore ]
)
ev.emit ('chats.update', [{ jid, count: count }])
ev.emit ('chats.update', [{ jid, count: count < 0 ? -1 : 0 }])
},
/**
* Modify a given chat (archive, pin etc.)