Fix fetchLatestWaWebVersion to bypass WhatsApp anti-bot detection with minimal headers (#1883)
* fix: fetchLatestWaWebVersion to curl * fix: lint * fix: fetchLatestWaWebVersion to bypass WhatsApp anti-bot detection with minimal headers --------- Co-authored-by: João Lucas <jlucaso@hotmail.com>
This commit is contained in:
@@ -699,7 +699,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
for (const device of devices) {
|
||||
const deviceJid = device.jid
|
||||
const hasKey = !!senderKeyMap[deviceJid]
|
||||
if ((!hasKey || !!participant ) && !isJidHostedLidUser(deviceJid) && !isJidHostedPnUser(deviceJid)) {
|
||||
if ((!hasKey || !!participant) && !isJidHostedLidUser(deviceJid) && !isJidHostedPnUser(deviceJid)) {
|
||||
//todo: revamp all this logic
|
||||
// the goal is to follow with what I said above for each group, and instead of a true false map of ids, we can set an array full of those the app has already sent pkmsgs
|
||||
senderKeyRecipients.push(deviceJid)
|
||||
|
||||
Reference in New Issue
Block a user