diff --git a/packages/kb.gbapp/services/KBService.ts b/packages/kb.gbapp/services/KBService.ts index fbe785f8..d14431a8 100644 --- a/packages/kb.gbapp/services/KBService.ts +++ b/packages/kb.gbapp/services/KBService.ts @@ -68,13 +68,9 @@ import pdf from 'pdf-extraction'; import { GBSSR } from '../../core.gbapp/services/GBSSR.js'; import { GBLogEx } from '../../core.gbapp/services/GBLogEx.js'; import mammoth from 'mammoth'; -import { url } from 'inspector'; -import { min } from 'lodash'; import { GBAdminService } from '../../admin.gbapp/services/GBAdminService.js'; -import { text } from 'body-parser'; import { GBVMService } from '../../basic.gblib/services/GBVMService.js'; import { DialogKeywords } from '../../basic.gblib/services/DialogKeywords.js'; -import { GBConversationalService } from '../../core.gbapp/services/GBConversationalService.js'; import { GBMinService } from '../../core.gbapp/services/GBMinService.js'; /** diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index dc52fbcc..a729bf0b 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -937,9 +937,11 @@ export class WhatsappDirectLine extends GBService { switch (provider) { case 'GeneralBots': - // Ignore E2E messages used during initialization. + + // Ignore E2E messages and status updates. - if (req.type && req.type === 'e2e_notification') { + if (req.type && req.type === 'e2e_notification' + || req.isStatus) { return; }