diff --git a/src/Utils/decode-wa-message.ts b/src/Utils/decode-wa-message.ts index 159790b..ee4a5a1 100644 --- a/src/Utils/decode-wa-message.ts +++ b/src/Utils/decode-wa-message.ts @@ -56,7 +56,7 @@ export const decodeMessageStanza = async(stanza: BinaryNode, auth: Authenticatio const sender = msgType === 'chat' ? author : chatId - const fromMe = isMe(participant || chatId) + const fromMe = isMe(stanza.attrs.participant || stanza.attrs.from) const pushname = stanza.attrs.notify const key: WAMessageKey = {