Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_topics: Use get_sub_by_id in format_topic to get stream info.
sahil83930c55a1ea7fe
diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.jsindex a9c84958eac..a772a355cd6 100644--- a/frontend_tests/node_tests/recent_topics.js+++ b/frontend_tests/node_tests/recent_topics.js@@ -8,7 +8,7 @@ set_global('hashchange', {exit_overlay: noop,});set_global('stream_data', {- get_sub: () => {+ get_sub_by_id: () => {return {color: "",invite_only: false,diff --git a/static/js/recent_topics.js b/static/js/recent_topics.jsindex 3fad7308e8e..1da295769e8 100644--- a/static/js/recent_topics.js+++ b/static/js/recent_topics.js@@ -158,7 +158,7 @@ function format_topic(topic_data) {const last_msg = message_store.get(topic_data.last_msg_id);const stream = last_msg.stream;const stream_id = last_msg.stream_id;- const stream_info = stream_data.get_sub(stream);+ const stream_info = stream_data.get_sub_by_id(stream_id);const topic = last_msg.topic;const time = new XDate(last_msg.timestamp * 1000);const last_msg_time = timerender.last_seen_status_from_date(time);