From 916794fc154cc16e1dce2dd7d7c523b25699e8d8 Mon Sep 17 00:00:00 2001 From: rodrigorodriguez Date: Sun, 16 Oct 2022 10:29:59 -0300 Subject: [PATCH] fix(whatsapp.gblib): FIX on HEAR ON after provider change. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 2b0457a6..67534de4 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -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. };