user_group_settings: Remove redundant is_person_active check.

The "members" field for user groups sent by servers only include
active users, so there is no need for is_person_active check to
filter out the deactivated users.
This commit is contained in:
Sahil Batra 2024-03-28 19:52:09 +05:30 committed by Tim Abbott
parent 4784c71bf9
commit 4fe12c1860
1 changed files with 1 additions and 2 deletions

View File

@ -44,8 +44,7 @@ function get_potential_members(): User[] {
function get_user_group_members(group: UserGroup): User[] {
const member_ids = [...group.members];
const active_member_ids = member_ids.filter((user_id) => people.is_person_active(user_id));
return people.get_users_from_ids(active_member_ids);
return people.get_users_from_ids(member_ids);
}
export function update_member_list_widget(group: UserGroup): void {