mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
js: Convert _.uniq(a) to Array.from(new Set(a)).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
2fc156e556
commit
e2290ef0de
@@ -1,5 +1,3 @@
|
||||
import _ from "lodash";
|
||||
|
||||
import * as muted_users from "./muted_users";
|
||||
import * as util from "./util";
|
||||
|
||||
@@ -56,7 +54,6 @@ export function get_group_typists(group) {
|
||||
export function get_all_typists() {
|
||||
let typists = Array.from(typist_dct.values()).flat();
|
||||
typists = util.sorted_ids(typists);
|
||||
typists = _.sortedUniq(typists);
|
||||
return muted_users.filter_muted_user_ids(typists);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user