2
0

🐛 (calCom) Don't delete session if chat reply has custom embed

Closes #1164
This commit is contained in:
Baptiste Arnaud
2024-01-22 14:35:12 +01:00
parent 233e99301e
commit 5627105ce5
7 changed files with 26 additions and 5 deletions

View File

@@ -86,6 +86,9 @@ export const continueChat = publicProcedure
logs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
const isPreview = isNotDefined(session.state.typebotsQueue[0].resultId)

View File

@@ -133,6 +133,9 @@ export const sendMessageV1 = publicProcedure
logs: allLogs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {
@@ -187,6 +190,9 @@ export const sendMessageV1 = publicProcedure
logs: allLogs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {

View File

@@ -133,6 +133,9 @@ export const sendMessageV2 = publicProcedure
logs: allLogs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {
@@ -186,6 +189,9 @@ export const sendMessageV2 = publicProcedure
logs: allLogs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {

View File

@@ -78,6 +78,9 @@ export const startChat = publicProcedure
logs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {

View File

@@ -66,6 +66,9 @@ export const startChatPreview = publicProcedure
logs,
clientSideActions,
visitedEdges,
hasCustomEmbedBubble: messages.some(
(message) => message.type === 'custom-embed'
),
})
return {