Skip to content

Commit

Permalink
Merge pull request #1070 from help-corretora/main
Browse files Browse the repository at this point in the history
Quando a conversa está aberta e o cliente manda mensagem, o status da conversa muda para pendente.
  • Loading branch information
DavidsonGomes authored Nov 15, 2024
2 parents b603021 + e092a80 commit 09a33a4
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 09a33a4

Please sign in to comment.