fix: Bug fix when connecting whatsapp does not send confirmation message

This commit is contained in:
Davidson Gomes
2023-07-18 12:47:03 -03:00
parent 44bf39f7b7
commit 7cacf7bbaf
3 changed files with 14 additions and 1 deletions

View File

@@ -624,6 +624,17 @@ export class WAStartupService {
│ CONNECTED TO WHATSAPP │
└──────────────────────────────┘`.replace(/^ +/gm, ' '),
);
if (this.localChatwoot.enabled) {
this.chatwootService.eventWhatsapp(
Events.CONNECTION_UPDATE,
{ instanceName: this.instance.name },
{
instance: this.instance.name,
status: 'open',
},
);
}
}
}