mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 10:28:38 -06:00
Ignore events that are not messages
This commit is contained in:
parent
44d4781f6f
commit
b3dae7a68e
@ -1898,7 +1898,7 @@ export class ChatwootService {
|
|||||||
|
|
||||||
public async eventWhatsapp(event: string, instance: InstanceDto, body: any) {
|
public async eventWhatsapp(event: string, instance: InstanceDto, body: any) {
|
||||||
try {
|
try {
|
||||||
// Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE)
|
// Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE)
|
||||||
if (body?.type && body.type !== 'message' && body.type !== 'conversation') {
|
if (body?.type && body.type !== 'message' && body.type !== 'conversation') {
|
||||||
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
|
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
|
||||||
return;
|
return;
|
||||||
@ -2276,7 +2276,7 @@ export class ChatwootService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event === 'messages.edit' || event === 'send.message.update') {
|
if (event === 'messages.edit' || event === 'send.message.update') {
|
||||||
// Ignora eventos que não são mensagens (como EPHEMERAL_SYNC_RESPONSE)
|
// Ignore events that are not messages (like EPHEMERAL_SYNC_RESPONSE)
|
||||||
if (body?.type && body.type !== 'message') {
|
if (body?.type && body.type !== 'message') {
|
||||||
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
|
this.logger.verbose(`Ignoring non-message event type: ${body.type}`);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user