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 ProcessedMessage type in reify_message_id.

Anders Kaseorg898b544ba4c9
diff --git a/web/src/message_store.ts b/web/src/message_store.ts
index bf29116b6d4..2edec120b2c 100644
--- a/web/src/message_store.ts
+++ b/web/src/message_store.ts
@@ -391,7 +391,7 @@ export function reify_message_id({old_id, new_id}: {old_id: number; new_id: numb
if (message_data !== undefined) {
message_data.message.id = new_id;
message_data.message.locally_echoed = false;
- stored_messages.set(new_id, message_data);
+ stored_messages.set(new_id, {type: "server_message", message: message_data.message});
stored_messages.delete(old_id);
}
}