Skip to content

Commit

Permalink
fix(all): Fix answers with dialog id working again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 25, 2023
1 parent 8c098c8 commit 2a6f64f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...`);
Expand Down

0 comments on commit 2a6f64f

Please sign in to comment.