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.

edit-history: Fix server message edit history schema.

Lauryn Menard0e259db4be1f
diff --git a/web/src/message_edit_history.ts b/web/src/message_edit_history.ts
index 94911fcbc62..5d92d88c960 100644
--- a/web/src/message_edit_history.ts
+++ b/web/src/message_edit_history.ts
@@ -50,8 +50,8 @@ type EditHistoryEntry = {
const server_message_history_schema = z.object({
message_history: z.array(
z.object({
- content: z.string(),
- rendered_content: z.string(),
+ content: z.optional(z.string()),
+ rendered_content: z.optional(z.string()),
timestamp: z.number(),
topic: z.string(),
user_id: z.nullable(z.number()),