Change argument type for stream_data.is_active().

The function now takes a "sub" object instead of a stream
name.
This commit is contained in:
Steve Howell
2017-04-28 06:38:02 -07:00
parent 62d530196b
commit f9b3ff8f68
6 changed files with 15 additions and 14 deletions

View File

@@ -219,7 +219,7 @@ function build_stream_sidebar_row(sub) {
var stream_name = sub.name;
self.update_whether_active = function () {
if (stream_data.is_active(stream_name)) {
if (stream_data.is_active(sub)) {
list_item.removeClass('inactive_stream');
} else {
list_item.addClass('inactive_stream');