socket: fix onWhatsApp

This commit is contained in:
Rajeh Taher
2025-09-09 00:54:59 +03:00
parent 4a1a06bed5
commit 8204e57a40
2 changed files with 3 additions and 4 deletions
+1 -3
View File
@@ -257,10 +257,8 @@ export const makeSocket = (config: SocketConfig) => {
}
const onWhatsApp = async (...jids: string[]) => {
const usyncQuery = new USyncQuery().withLIDProtocol()
const usyncQuery = new USyncQuery().withLIDProtocol().withContactProtocol()
// .withContactProtocol() when dealing with phone
// .withId simply with LIDs and WIDs
for (const jid of jids) {
if (isLidUser(jid)) {
usyncQuery.withUser(new USyncUser().withId(jid)) // intentional