mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
int_dict: Remove filter_values method.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
1cdab5ae61
commit
7cc16757aa
@@ -681,7 +681,13 @@ exports.is_active_user_for_popover = function (user_id) {
|
||||
};
|
||||
|
||||
exports.filter_all_persons = function (pred) {
|
||||
return people_by_user_id_dict.filter_values(pred);
|
||||
const ret = [];
|
||||
for (const person of people_by_user_id_dict.values()) {
|
||||
if (pred(person)) {
|
||||
ret.push(person);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
||||
exports.get_realm_persons = function () {
|
||||
|
||||
Reference in New Issue
Block a user