fix/media content validation

This commit is contained in:
Marlon Alves
2025-10-11 04:13:12 -03:00
parent 0976109d27
commit b0d261b305
2 changed files with 5 additions and 2 deletions

View File

@@ -3676,7 +3676,10 @@ export class BaileysStartupService extends ChannelStartupService {
}
}
if ('messageContextInfo' in msg.message && Object.keys(msg.message).length === 1) {
if (
Object.keys(msg.message).length === 1 &&
Object.prototype.hasOwnProperty.call(msg.message, 'messageContextInfo')
) {
throw 'The message is messageContextInfo';
}