Skip to content

Commit

Permalink
Merge pull request #1 from vitor-help/main
Browse files Browse the repository at this point in the history
erro, colocando mensagens em pendente
  • Loading branch information
help-corretora authored Nov 14, 2024
2 parents 1665654 + 99a533a commit e092a80
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 e092a80

Please sign in to comment.