2
0

(embedBubble) Enable variable embed height

This commit is contained in:
Baptiste Arnaud
2023-02-19 09:53:57 +01:00
parent d22cc45a97
commit 621cd58244
14 changed files with 226 additions and 198 deletions

View File

@@ -84,7 +84,11 @@ const audioMessageSchema = z.object({
const embedMessageSchema = z.object({
type: z.enum([BubbleBlockType.EMBED]),
content: embedBubbleContentSchema,
content: embedBubbleContentSchema
.omit({
height: true,
})
.and(z.object({ height: z.number().optional() })),
})
const chatMessageSchema = z