From fc7b23ec0fb746cfb2112b0d531b3bcc6473bfd6 Mon Sep 17 00:00:00 2001 From: Nandhika Prayoga Date: Fri, 16 May 2025 12:16:11 +0000 Subject: [PATCH] Look up isNodeFromMe for fromMe when attribute type is sender --- src/Socket/messages-recv.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index ecda600..742817c 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -608,7 +608,10 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { const isLid = attrs.from.includes('lid') const isNodeFromMe = areJidsSameUser(attrs.participant || attrs.from, isLid ? authState.creds.me?.lid : authState.creds.me?.id) const remoteJid = !isNodeFromMe || isJidGroup(attrs.from) ? attrs.from : attrs.recipient - const fromMe = !attrs.recipient || (attrs.type === 'retry' && isNodeFromMe) + const fromMe = !attrs.recipient || ( + (attrs.type === 'retry' || attrs.type === 'sender') + && isNodeFromMe + ) const key: proto.IMessageKey = { remoteJid,