Auto-reply: preserve explicit deliver routes for internal webchat turns
This commit is contained in:
parent
732d1e5d55
commit
4353207e34
@ -217,7 +217,8 @@ export async function dispatchReplyFromConfig(params: {
|
||||
const currentSurface = providerChannel ?? surfaceChannel;
|
||||
const isInternalWebchatTurn =
|
||||
currentSurface === INTERNAL_MESSAGE_CHANNEL &&
|
||||
(surfaceChannel === INTERNAL_MESSAGE_CHANNEL || !surfaceChannel);
|
||||
(surfaceChannel === INTERNAL_MESSAGE_CHANNEL || !surfaceChannel) &&
|
||||
ctx.ExplicitDeliverRoute !== true;
|
||||
const shouldRouteToOriginating = Boolean(
|
||||
!isInternalWebchatTurn &&
|
||||
isRoutableChannel(originatingChannel) &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user