We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f83d8de commit 41bea89Copy full SHA for 41bea89
1 file changed
src/whatsapp/services/whatsapp.service.ts
@@ -1432,7 +1432,12 @@ export class WAStartupService {
1432
this.logger.verbose('Event received: messages.upsert');
1433
const received = messages[0];
1434
1435
- if (type !== 'notify' || received.message?.protocolMessage || received.message?.pollUpdateMessage) {
+ if (
1436
+ type !== 'notify' ||
1437
+ !received.message ||
1438
+ received.message?.protocolMessage ||
1439
+ received.message?.pollUpdateMessage
1440
+ ) {
1441
this.logger.verbose('message rejected');
1442
return;
1443
}
0 commit comments