Skip to content

Commit

Permalink
fix(whatsapp.gblib): FIX on HEAR ON after provider change.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Oct 16, 2022
1 parent e01bc57 commit 916794f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ export class WhatsappDirectLine extends GBService {
const botId = this.min.instance.botId;
const state = WhatsappDirectLine.state[botId + from];
if (state) {
GBLog.verbose(`BASIC: Continuing HEAR from WhatsApp...`);
WhatsappDirectLine.state[botId + from] = null;
await state.promise(null, message.text);
await state.promise(null, text);

return; // Exit here.
};
Expand Down

0 comments on commit 916794f

Please sign in to comment.