File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
integrations/channel/whatsapp Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3676,7 +3676,10 @@ export class BaileysStartupService extends ChannelStartupService {
36763676 }
36773677 }
36783678
3679- if ( 'messageContextInfo' in msg . message && Object . keys ( msg . message ) . length === 1 ) {
3679+ if (
3680+ Object . keys ( msg . message ) . length === 1 &&
3681+ Object . prototype . hasOwnProperty . call ( msg . message , 'messageContextInfo' )
3682+ ) {
36803683 throw 'The message is messageContextInfo' ;
36813684 }
36823685
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ export class ChannelStartupService {
826826 const msg = message . message ;
827827
828828 // Se só tem messageContextInfo, não é mídia válida
829- if ( Object . keys ( msg ) . length === 1 && 'messageContextInfo' in msg ) {
829+ if ( Object . keys ( msg ) . length === 1 && Object . prototype . hasOwnProperty . call ( msg , 'messageContextInfo' ) ) {
830830 return false ;
831831 }
832832
You can’t perform that action at this time.
0 commit comments