Flip conditional in stream_list.add_sidebar_li().

This commit is contained in:
Steve Howell 2016-10-28 08:00:34 -07:00 committed by Tim Abbott
parent 403490a95b
commit ecbd77d8a5
1 changed files with 3 additions and 3 deletions

View File

@ -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));