Skip to content

Commit 09a33a4

Browse files
Merge pull request EvolutionAPI#1070 from help-corretora/main
Quando a conversa está aberta e o cliente manda mensagem, o status da conversa muda para pendente.
2 parents b603021 + e092a80 commit 09a33a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ export class ChatwootService {
704704
conversation = contactConversations.payload.find((conversation) => conversation.inbox_id == filterInbox.id);
705705
this.logger.verbose(`Found conversation in reopenConversation mode: ${JSON.stringify(conversation)}`);
706706

707-
if (this.provider.conversationPending) {
707+
if (this.provider.conversationPending && conversation.status !== 'open') {
708708
if (conversation) {
709709
await client.conversations.toggleStatus({
710710
accountId: this.provider.accountId,

0 commit comments

Comments
 (0)