mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
Don't show the stream list on Humbug for MIT.
(imported from commit d9f952aaeb910a7c57ce1174141686331224c8c0)
This commit is contained in:
@@ -259,6 +259,12 @@ function resizehandler(e) {
|
||||
$(function () {
|
||||
// When the user's profile picture loads this can change the height of the sidebar
|
||||
$("img.gravatar-profile").bind('load', resizehandler);
|
||||
|
||||
// We don't have a stream list at MIT.
|
||||
if (domain === "mit.edu") {
|
||||
$("#stream_filters").remove();
|
||||
$("#stream_filters_sep").remove();
|
||||
}
|
||||
});
|
||||
|
||||
var old_label;
|
||||
@@ -873,6 +879,18 @@ function sort_narrow_list() {
|
||||
exports.add_narrow_filter = function(name, type, uri) {
|
||||
var list_item;
|
||||
|
||||
/*
|
||||
* We don't give MIT a stream list currently since that would likely be
|
||||
* overwhelming for users given the vast number of streams MIT users are
|
||||
* commonly subscribed to.
|
||||
*
|
||||
* This will not be as much of an issue once we do prioritization of streams
|
||||
* in the list.
|
||||
*/
|
||||
if (domain === "mit.edu" && type === "stream") {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#" + type + "_filters li[data-name='" + encodeURIComponent(name) + "']").length) {
|
||||
// already exists
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user