socket: return on empty userlist in onWhatsApp

This commit is contained in:
Rajeh Taher
2025-09-26 10:21:00 +03:00
parent 8b1cfe913d
commit 4344e5184a
+4
View File
@@ -276,6 +276,10 @@ export const makeSocket = (config: SocketConfig) => {
}
}
if (usyncQuery.users.length == 0) {
return [] // return early without forcing an empty query
}
const results = await executeUSyncQuery(usyncQuery)
if (results) {