mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
The get_active_humans and get_non_active_humans functions used to return a list of user objects. The get_active_humans is used on settings_users.js and settings_bots.js, and in both places the only attributes needed of the person object are the user_id and full_name. To make the function return smaller, instead of a list of active humans, we are returning a list of active human ids, saving memory. With the ids we can call the people API to get the full_name attribute.