mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
Extract topic_data.js.
This new module tracks the recent topic names for any given stream. The code was pulled over almost verbatim from stream_data.js, with minor renames to the function names. We introduced a minor one-line function called stream_has_topics.
This commit is contained in:
@@ -52,7 +52,7 @@ exports.build_widget = function (parent_elem, my_stream_id, active_topic, max_to
|
||||
var my_stream_name = stream_data.get_sub_by_id(my_stream_id).name;
|
||||
|
||||
function build_list(active_topic, max_topics) {
|
||||
var topic_names = stream_data.get_recent_topic_names(my_stream_id);
|
||||
var topic_names = topic_data.get_recent_names(my_stream_id);
|
||||
|
||||
if (active_topic) {
|
||||
active_topic = active_topic.toLowerCase();
|
||||
|
||||
Reference in New Issue
Block a user