feat: add lid to message key (#1510)

* feat: add lid to message key

* chore: review suggestion
This commit is contained in:
Cassio Santos
2025-06-11 08:39:19 -03:00
committed by GitHub
parent 99bbafeae5
commit 6b4dce897d
2 changed files with 5 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export type WAMessage = proto.IWebMessageInfo
export type WAMessageContent = proto.IMessage
export type WAContactMessage = proto.Message.IContactMessage
export type WAContactsArrayMessage = proto.Message.IContactsArrayMessage
export type WAMessageKey = proto.IMessageKey
export type WAMessageKey = proto.IMessageKey & { senderLid?: string; participantLid?: string; senderPn?: string }
export type WATextMessage = proto.Message.IExtendedTextMessage
export type WAContextInfo = proto.IContextInfo
export type WALocationMessage = proto.Message.ILocationMessage

View File

@@ -110,7 +110,10 @@ export function decodeMessageNode(stanza: BinaryNode, meId: string, meLid: strin
remoteJid: chatId,
fromMe,
id: msgId,
participant
senderLid: stanza?.attrs?.sender_lid,
senderPn: stanza?.attrs?.sender_pn,
participant,
participantLid: stanza?.attrs?.participant_lid
}
const fullMessage: proto.IWebMessageInfo = {