Merge pull request #1 from vitor-help/main

erro, colocando mensagens em pendente
This commit is contained in:
Help Corretora
2024-11-14 20:50:58 -03:00
committed by GitHub

View File

@@ -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,