mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user