mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-13 23:17:34 -06:00
Merge pull request #1070 from help-corretora/main
Quando a conversa está aberta e o cliente manda mensagem, o status da conversa muda para pendente.
This commit is contained in:
commit
09a33a423e
@ -704,7 +704,7 @@ export class ChatwootService {
|
|||||||
conversation = contactConversations.payload.find((conversation) => conversation.inbox_id == filterInbox.id);
|
conversation = contactConversations.payload.find((conversation) => conversation.inbox_id == filterInbox.id);
|
||||||
this.logger.verbose(`Found conversation in reopenConversation mode: ${JSON.stringify(conversation)}`);
|
this.logger.verbose(`Found conversation in reopenConversation mode: ${JSON.stringify(conversation)}`);
|
||||||
|
|
||||||
if (this.provider.conversationPending) {
|
if (this.provider.conversationPending && conversation.status !== 'open') {
|
||||||
if (conversation) {
|
if (conversation) {
|
||||||
await client.conversations.toggleStatus({
|
await client.conversations.toggleStatus({
|
||||||
accountId: this.provider.accountId,
|
accountId: this.provider.accountId,
|
||||||
|
Loading…
Reference in New Issue
Block a user