Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_store: Update `raw_message_schema` to support markdown.

apoorvapendse90e117f919fb
diff --git a/web/src/message_store.ts b/web/src/message_store.ts
index 1214429114c..20db7861b7b 100644
--- a/web/src/message_store.ts
+++ b/web/src/message_store.ts
@@ -79,7 +79,7 @@ export const raw_message_schema = z.intersection(
avatar_url: z.nullable(z.string()),
client: z.string(),
content: z.string(),
- content_type: z.literal("text/html"),
+ content_type: z.enum(["text/html", "text/x-markdown"]),
display_recipient: display_recipient_schema,
edit_history: z.optional(z.array(message_edit_history_entry_schema)),
id: z.number(),