mirror of https://github.com/zulip/zulip.git
Flip conditional in stream_list.add_sidebar_li().
This commit is contained in:
parent
403490a95b
commit
ecbd77d8a5
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue