mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
Change how the tutorial overrides the default stream color.
The tutorial introduces "engineering" messages that might not be in the user's normal subscription, and they would get a gray border if we did not override the stream color. Before this change, we accomplished this by overriding the core data structure in stream_data.js. Now we are a bit more future-proof; we only override stream_color.default_color. (imported from commit 0d0845b72f766912679f5aa7641ae9a60fdbb4ce)
This commit is contained in:
@@ -25,14 +25,6 @@ exports.delete_sub = function (stream_name) {
|
||||
stream_info.del(stream_name);
|
||||
};
|
||||
|
||||
exports.set_stream_info = function (new_stream_info) {
|
||||
stream_info = new_stream_info;
|
||||
};
|
||||
|
||||
exports.get_stream_info = function () {
|
||||
return stream_info;
|
||||
};
|
||||
|
||||
exports.subscribed_subs = function () {
|
||||
return _.where(stream_info.values(), {subscribed: true});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user