From ecbd77d8a577337ace601e84f76339f8d6200258 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 28 Oct 2016 08:00:34 -0700 Subject: [PATCH] Flip conditional in stream_list.add_sidebar_li(). --- static/js/stream_list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index 8425ce546a..5205b5a8da 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -78,10 +78,10 @@ exports.build_stream_list = function () { function add_sidebar_li(stream) { var li = $(stream_data.get_sub(stream).sidebar_li); if (sort_recent) { - if (! stream_data.recent_subjects.has(stream)) { - li.addClass('inactive_stream'); - } else { + if (stream_data.recent_subjects.has(stream)) { li.removeClass('inactive_stream'); + } else { + li.addClass('inactive_stream'); } } elems.push(li.get(0));