fix(all): Fix answers with dialog id working again.

This commit is contained in:
Rodrigo Rodriguez 2023-07-25 08:04:34 -03:00
parent 8c098c8dee
commit 2a6f64f238

View file

@ -276,7 +276,9 @@ export class WhatsappDirectLine extends GBService {
public async check() {
switch (this.provider) {
case 'GeneralBots':
return this.customClient.getState() === 'CONNECTED';
const state = this.customClient.getState();
GBLog.verbose(`GBWhatsapp: Status: ${state}`);
return state === 'CONNECTED';
default:
GBLog.verbose(`GBWhatsapp: Checking server...`);