Look up isNodeFromMe for fromMe when attribute type is sender

This commit is contained in:
Nandhika Prayoga
2025-05-16 12:16:11 +00:00
parent 24a268d095
commit fc7b23ec0f

View File

@@ -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,