Skip to content

Commit

Permalink
Update messages-recv.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
SheIITear authored May 18, 2024
1 parent 5ffa3a5 commit fdf614e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,8 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
}

const handleMessage = async(node: BinaryNode) => {
if(shouldIgnoreJid(msg.key.remoteJid!) && msg.key.remoteJid! !== '@s.whatsapp.net') {
logger.debug({ key: msg.key }, 'ignored message')
if(shouldIgnoreJid(node.attrs.from!) && node.attrs.from! !== '@s.whatsapp.net') {
logger.debug({ key: node.attrs.key }, 'ignored message')
await sendMessageAck(node)
return
}
Expand Down

0 comments on commit fdf614e

Please sign in to comment.