Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_topic_history_util: Use `raw_data` and `data` more.
Varun Singhf2c3207538a7
diff --git a/web/src/stream_topic_history_util.ts b/web/src/stream_topic_history_util.tsindex 44d46061210..b0fba5ee00f 100644--- a/web/src/stream_topic_history_util.ts+++ b/web/src/stream_topic_history_util.ts@@ -27,9 +27,9 @@ export function get_server_history(stream_id: number, on_success: () => void): vvoid channel.get({url,data: {},- success(data) {- const clean_data = stream_topic_history_response_schema.parse(data);- const server_history = clean_data.topics;+ success(raw_data) {+ const data = stream_topic_history_response_schema.parse(raw_data);+ const server_history = data.topics;stream_topic_history.add_history(stream_id, server_history);stream_topic_history.remove_request_pending_for(stream_id);on_success();