Skip to content

Commit e092a80

Browse files
Merge pull request #1 from vitor-help/main
erro, colocando mensagens em pendente
2 parents 1665654 + 99a533a commit e092a80

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)