From 99a533afc1103e274404e0da3544a015aa600bc6 Mon Sep 17 00:00:00 2001 From: Vitor Date: Thu, 14 Nov 2024 20:48:47 -0300 Subject: [PATCH] =?UTF-8?q?o=20chat=20est=C3=A1=20colocando=20a=20conversa?= =?UTF-8?q?=20como=20pendente=20quando=20o=20cliente=20manda=20mensagem,?= =?UTF-8?q?=20esse=20c=C3=B3digo=20visa=20corrigir=20isso.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integrations/chatbot/chatwoot/services/chatwoot.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index 503a5cc9..d71daae4 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -704,7 +704,7 @@ export class ChatwootService { conversation = contactConversations.payload.find((conversation) => conversation.inbox_id == filterInbox.id); this.logger.verbose(`Found conversation in reopenConversation mode: ${JSON.stringify(conversation)}`); - if (this.provider.conversationPending) { + if (this.provider.conversationPending && conversation.status !== 'open') { if (conversation) { await client.conversations.toggleStatus({ accountId: this.provider.accountId,