From c20a3b643fe5e9aea127bf9cd07327a5e5648371 Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Thu, 5 Sep 2024 20:52:46 -0300 Subject: [PATCH] fix: no response evolution bot --- CHANGELOG.md | 2 ++ .../chatbot/evolutionBot/services/evolutionBot.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 60fc71ad..e8d00a3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ * Missing autoCreate chatwoot in instance create * Fixed bugs in the frontend, on the event screens * Fixed use chatwoot with evolution channel +* Fix chatwoot reply quote with Cloud API +* Use exchange name from .env on RabbitMQ # 2.1.0 (2024-08-26 15:33) diff --git a/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts b/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts index e5cd16e6..a0967007 100644 --- a/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts +++ b/src/api/integrations/chatbot/evolutionBot/services/evolutionBot.service.ts @@ -194,6 +194,8 @@ export class EvolutionBotService { const message = await this.sendMessageToBot(instance, session, bot, remoteJid, pushName, content); + if (!message) return; + await this.sendMessageWhatsApp(instance, remoteJid, session, settings, message); return; @@ -299,9 +301,7 @@ export class EvolutionBotService { const message = await this.sendMessageToBot(instance, session, bot, remoteJid, pushName, content); - if (!message) { - return; - } + if (!message) return; await this.sendMessageWhatsApp(instance, remoteJid, session, settings, message);