feat(events): decrypt event responses (#2056)

This commit is contained in:
vini
2025-11-19 10:17:21 -03:00
committed by GitHub
parent b4863b624e
commit 40f128d88a
4 changed files with 154 additions and 5 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ export const BufferJSON = {
}
export const getKeyAuthor = (key: WAMessageKey | undefined | null, meId = 'me') =>
(key?.fromMe ? meId : key?.participant || key?.remoteJid) || ''
(key?.fromMe ? meId : key?.participantAlt || key?.remoteJidAlt || key?.participant || key?.remoteJid) || ''
export const writeRandomPadMax16 = (msg: Uint8Array) => {
const pad = randomBytes(1)