mirror of https://github.com/zulip/zulip.git
Always show narrowed topic in the topic sidebar.
Before this change, you could narrow to an old topic, and it would not show up in the sidebar unless it had unread messages. (imported from commit f177a7378dac064e46a6417357cc86ada4475936)
This commit is contained in:
parent
fcb6a9b572
commit
d94d2d71c5
|
@ -187,6 +187,10 @@ function rebuild_recent_subjects(stream, active_topic) {
|
|||
var stream_li = get_filter_li('stream', stream);
|
||||
var subjects = recent_subjects.get(stream) || [];
|
||||
|
||||
if (active_topic) {
|
||||
active_topic = active_topic.toLowerCase();
|
||||
}
|
||||
|
||||
var display_subjects = [];
|
||||
|
||||
_.each(subjects, function (subject_obj, idx) {
|
||||
|
@ -194,7 +198,7 @@ function rebuild_recent_subjects(stream, active_topic) {
|
|||
var num_unread = unread.num_unread_for_subject(stream, subject_obj.canon_subject);
|
||||
|
||||
// Show the most recent subjects, as well as any with unread messages
|
||||
if (idx < max_subjects || num_unread > 0) {
|
||||
if ((idx < max_subjects) || (num_unread > 0) || (active_topic === topic_name)) {
|
||||
var display_subject = {
|
||||
topic_name: topic_name,
|
||||
unread: num_unread,
|
||||
|
|
Loading…
Reference in New Issue