mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
hotfix message in group (#622)
hotfix message in group, decrypt error. Tray cath correction because some events require this function.
This commit is contained in:
committed by
GitHub
parent
3ce0ccb3d8
commit
b55749f694
@@ -170,10 +170,14 @@ export const decryptMessageNode = (
|
||||
let msg: proto.IMessage = proto.Message.decode(unpadRandomMax16(msgBuffer))
|
||||
msg = msg.deviceSentMessage?.message || msg
|
||||
if(msg.senderKeyDistributionMessage) {
|
||||
await repository.processSenderKeyDistributionMessage({
|
||||
authorJid: author,
|
||||
item: msg.senderKeyDistributionMessage
|
||||
})
|
||||
try {
|
||||
await repository.processSenderKeyDistributionMessage({
|
||||
authorJid: author,
|
||||
item: msg.senderKeyDistributionMessage
|
||||
})
|
||||
} catch (err) {
|
||||
logger.error({ key: fullMessage.key, err }, 'failed to decrypt message');
|
||||
}
|
||||
}
|
||||
|
||||
if(fullMessage.message) {
|
||||
|
||||
Reference in New Issue
Block a user