Skip to content

Commit

Permalink
fix(messaging): conversation.started skip dialog engine (#11551)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmasse committed Feb 22, 2022
1 parent 4ac4e01 commit 2a65649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/bp/src/core/messaging/messaging-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { AxiosRequestConfig } from 'axios'
import { IO, Logger, MessagingConfig } from 'botpress/sdk'
import { formatUrl, isBpUrl } from 'common/url'
import { ConfigProvider } from 'core/config'
import { WellKnownFlags } from 'core/dialog'
import { EventEngine, Event, EventRepository } from 'core/events'
import { TYPES } from 'core/types'
import { inject, injectable, postConstruct } from 'inversify'
Expand Down Expand Up @@ -211,6 +212,7 @@ export class MessagingService {
target: data.userId,
botId: this.clientIdToBotId[clientId]
})
event.setFlag(WellKnownFlags.SKIP_DIALOG_ENGINE, true)

return this.eventEngine.sendEvent(event)
}
Expand Down

0 comments on commit 2a65649

Please sign in to comment.