mirror of https://github.com/zulip/zulip.git
stream_topic_history_util: Use `raw_data` and `data` more.
Prefer using `raw_data` and `data` instead of `data` and `clean_data`.
This commit is contained in:
parent
3d64fb6cda
commit
f2c3207538
|
@ -27,9 +27,9 @@ export function get_server_history(stream_id: number, on_success: () => void): v
|
|||
void 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();
|
||||
|
|
Loading…
Reference in New Issue