Don't show the stream list on Humbug for MIT.

(imported from commit d9f952aaeb910a7c57ce1174141686331224c8c0)
This commit is contained in:
Luke Faraone
2013-02-08 11:58:08 -05:00
parent 686c709788
commit fd1d790b72
3 changed files with 22 additions and 2 deletions

View File

@@ -97,6 +97,7 @@ function create_sub(stream_name, attrs) {
subscribed: true, in_home_view: true, invite_only: false}, attrs);
stream_info[stream_name.toLowerCase()] = sub;
if (sub.subscribed) {
// This will do nothing on MIT
ui.add_narrow_filter(stream_name, "stream", "#narrow/stream/" + encodeURIComponent(stream_name));
}
return sub;
@@ -140,6 +141,7 @@ function mark_subscribed(stream_name, attrs) {
add_sub_to_table(sub);
} else if (! sub.subscribed) {
sub.subscribed = true;
// This will do nothing on MIT
ui.add_narrow_filter(stream_name, "stream", "#narrow/stream/" + encodeURIComponent(stream_name));
var button = button_for_sub(sub);
if (button.length !== 0) {