mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add lid to message key (#1510)
* feat: add lid to message key * chore: review suggestion
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user