mirror of https://github.com/zulip/zulip.git
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:
parent
4784c71bf9
commit
4fe12c1860
|
@ -44,8 +44,7 @@ function get_potential_members(): User[] {
|
||||||
|
|
||||||
function get_user_group_members(group: UserGroup): User[] {
|
function get_user_group_members(group: UserGroup): User[] {
|
||||||
const member_ids = [...group.members];
|
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(member_ids);
|
||||||
return people.get_users_from_ids(active_member_ids);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function update_member_list_widget(group: UserGroup): void {
|
export function update_member_list_widget(group: UserGroup): void {
|
||||||
|
|
Loading…
Reference in New Issue