mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
fix: adjusts in validation to messages.upsert
This commit is contained in:
parent
57fb3c9785
commit
a5c5879e4f
@ -1638,13 +1638,7 @@ export class WAStartupService {
|
||||
this.logger.verbose('Event received: messages.upsert');
|
||||
const received = messages[0];
|
||||
|
||||
if (
|
||||
type !== 'notify' ||
|
||||
!received?.message ||
|
||||
received.message?.protocolMessage ||
|
||||
// received.message.senderKeyDistributionMessage ||
|
||||
received.message?.pollUpdateMessage
|
||||
) {
|
||||
if (type !== 'notify' || received.message?.protocolMessage || received.message?.pollUpdateMessage) {
|
||||
this.logger.verbose('message rejected');
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user