mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
subject/topic: Rename rebuild_recent_subjects().
This commit is contained in:
@@ -440,8 +440,8 @@ exports._build_private_messages_list = function (active_conversation, max_privat
|
|||||||
return recipients_dom;
|
return recipients_dom;
|
||||||
};
|
};
|
||||||
|
|
||||||
function rebuild_recent_subjects(stream, active_topic) {
|
function rebuild_recent_topics(stream, active_topic) {
|
||||||
// TODO: Call rebuild_recent_subjects less, not on every new
|
// TODO: Call rebuild_recent_topics less, not on every new
|
||||||
// message.
|
// message.
|
||||||
remove_expanded_subjects();
|
remove_expanded_subjects();
|
||||||
var max_subjects = 5;
|
var max_subjects = 5;
|
||||||
@@ -487,7 +487,7 @@ exports.update_streams_sidebar = function () {
|
|||||||
subject = op_subject[0];
|
subject = op_subject[0];
|
||||||
}
|
}
|
||||||
if (stream_data.is_subscribed(op_stream[0])) {
|
if (stream_data.is_subscribed(op_stream[0])) {
|
||||||
rebuild_recent_subjects(op_stream[0], subject);
|
rebuild_recent_topics(op_stream[0], subject);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -633,7 +633,7 @@ $(function () {
|
|||||||
} else {
|
} else {
|
||||||
stream_li.addClass('active-filter');
|
stream_li.addClass('active-filter');
|
||||||
}
|
}
|
||||||
rebuild_recent_subjects(op_stream[0], subject);
|
rebuild_recent_topics(op_stream[0], subject);
|
||||||
unread.process_visible();
|
unread.process_visible();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user