Merge pull request #1948 from furious/fix/download-media-bad-decrypt

fix: convert mediaKey from media messages to avoid bad decrypt errors
This commit is contained in:
Davidson Gomes 2025-09-17 08:52:50 -03:00 committed by GitHub
commit 5a39f1ae49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3601,7 +3601,7 @@ export class BaileysStartupService extends ChannelStartupService {
}
if (typeof mediaMessage['mediaKey'] === 'object') {
msg.message = JSON.parse(JSON.stringify(msg.message));
msg.message[mediaType].mediaKey = Uint8Array.from(Object.values(mediaMessage['mediaKey']));
}
let buffer: Buffer;