fix(whatsapp.gblib): FIX on HEAR ON after provider change.
This commit is contained in:
parent
e01bc57119
commit
916794fc15
1 changed files with 2 additions and 1 deletions
|
@ -473,8 +473,9 @@ export class WhatsappDirectLine extends GBService {
|
||||||
const botId = this.min.instance.botId;
|
const botId = this.min.instance.botId;
|
||||||
const state = WhatsappDirectLine.state[botId + from];
|
const state = WhatsappDirectLine.state[botId + from];
|
||||||
if (state) {
|
if (state) {
|
||||||
|
GBLog.verbose(`BASIC: Continuing HEAR from WhatsApp...`);
|
||||||
WhatsappDirectLine.state[botId + from] = null;
|
WhatsappDirectLine.state[botId + from] = null;
|
||||||
await state.promise(null, message.text);
|
await state.promise(null, text);
|
||||||
|
|
||||||
return; // Exit here.
|
return; // Exit here.
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue