Skip to content

Commit

Permalink
o chat está colocando a conversa como pendente quando o cliente manda…
Browse files Browse the repository at this point in the history
… mensagem, esse código visa corrigir isso.
  • Loading branch information
vitor-help committed Nov 14, 2024
1 parent 1665654 commit 99a533a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 99a533a

Please sign in to comment.