mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
stream_list_sort: Remove unused function.
This function was introduced inc1b5021d84
but was never used. (cherry picked from commit87864992a8
)
This commit is contained in:
@@ -57,10 +57,6 @@ export function is_filtering_inactives(): boolean {
|
|||||||
return filter_out_inactives;
|
return filter_out_inactives;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function has_recent_activity_but_muted(sub: StreamSubscription): boolean {
|
|
||||||
return sub.is_recently_active && sub.is_muted;
|
|
||||||
}
|
|
||||||
|
|
||||||
type StreamListSortResult = {
|
type StreamListSortResult = {
|
||||||
same_as_before: boolean;
|
same_as_before: boolean;
|
||||||
pinned_streams: number[];
|
pinned_streams: number[];
|
||||||
|
@@ -201,18 +201,6 @@ test("basics", () => {
|
|||||||
assert.deepEqual(sorted.dormant_streams, []);
|
assert.deepEqual(sorted.dormant_streams, []);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("has_recent_activity_but_muted", () => {
|
|
||||||
const sub = {
|
|
||||||
name: "cats",
|
|
||||||
subscribed: true,
|
|
||||||
stream_id: 111,
|
|
||||||
is_muted: true,
|
|
||||||
is_recently_active: true,
|
|
||||||
};
|
|
||||||
stream_data.add_sub(sub);
|
|
||||||
assert.ok(stream_list_sort.has_recent_activity_but_muted(sub));
|
|
||||||
});
|
|
||||||
|
|
||||||
test("filter inactives", ({override}) => {
|
test("filter inactives", ({override}) => {
|
||||||
override(
|
override(
|
||||||
user_settings,
|
user_settings,
|
||||||
|
Reference in New Issue
Block a user