2
0

♻️ Simplify text bubble content shape

Remove html and plainText field because it was redundant

Closes #386
This commit is contained in:
Baptiste Arnaud
2023-04-13 17:04:21 +02:00
parent 2cbf8348c3
commit e0a9824913
70 changed files with 545 additions and 1030 deletions

View File

@ -73,9 +73,7 @@ const chatSessionSchema = z.object({
const textMessageSchema = z.object({
type: z.literal(BubbleBlockType.TEXT),
content: textBubbleContentSchema.omit({
richText: true,
}),
content: textBubbleContentSchema,
})
const imageMessageSchema = z.object({