mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
stream_data: Remove unused home_view_stream_names.
This commit is contained in:
@@ -433,11 +433,6 @@ export function all_subscribed_streams_are_in_home_view(): boolean {
|
||||
return subscribed_subs().every((sub) => !sub.is_muted);
|
||||
}
|
||||
|
||||
export function home_view_stream_names(): string[] {
|
||||
const home_view_subs = subscribed_subs().filter((sub) => !sub.is_muted);
|
||||
return home_view_subs.map((sub) => sub.name);
|
||||
}
|
||||
|
||||
export function canonicalized_name(stream_name: string): string {
|
||||
return stream_name.toString().toLowerCase();
|
||||
}
|
||||
|
||||
@@ -123,7 +123,6 @@ test("basics", () => {
|
||||
assert.equal(stream_data.get_sub("web_public_stream"), web_public_stream);
|
||||
assert.ok(stream_data.is_web_public(web_public_stream.stream_id));
|
||||
|
||||
assert.deepEqual(stream_data.home_view_stream_names(), ["social"]);
|
||||
assert.deepEqual(stream_data.subscribed_streams(), ["social", "test"]);
|
||||
assert.deepEqual(stream_data.get_colors(), ["red", "yellow"]);
|
||||
assert.deepEqual(stream_data.subscribed_stream_ids(), [social.stream_id, test.stream_id]);
|
||||
|
||||
Reference in New Issue
Block a user