2
0

🚸 (whatsapp) Remove .mp4 regex restriction for video URLs

Closes #1282
This commit is contained in:
Baptiste Arnaud
2024-03-01 16:24:36 +01:00
parent dd9b7eebb5
commit 3971e4a888
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,6 @@ import { BubbleBlockType } from '@typebot.io/schemas/features/blocks/bubbles/con
import { VideoBubbleContentType } from '@typebot.io/schemas/features/blocks/bubbles/video/constants'
import { convertRichTextToMarkdown } from '@typebot.io/lib/markdown/convertRichTextToMarkdown'
const mp4HttpsUrlRegex = /^https:\/\/.*\.mp4$/
export const convertMessageToWhatsAppMessage = (
message: ContinueChatResponse['messages'][number]
): WhatsAppSendingMessage | undefined => {
@ -45,8 +43,7 @@ export const convertMessageToWhatsAppMessage = (
case BubbleBlockType.VIDEO: {
if (
!message.content.url ||
(message.content.type !== VideoBubbleContentType.URL &&
isVideoUrlNotCompatible(message.content.url))
message.content.type !== VideoBubbleContentType.URL
)
return
return {