buddy_list: Fix bug where header didn't show correct participant count.

This commit is contained in:
evykassirer 2024-10-28 17:26:45 -07:00 committed by Tim Abbott
parent 3db32f1416
commit b826143537
1 changed files with 3 additions and 3 deletions

View File

@ -367,7 +367,7 @@ export class BuddyList extends BuddyListConf {
const {total_human_subscribers_count, other_users_count, all_participant_ids} =
this.render_data;
const subscriber_section_user_count =
total_human_subscribers_count - this.participant_user_ids.length;
total_human_subscribers_count - all_participant_ids.size;
const formatted_participants_count = get_formatted_sub_count(all_participant_ids.size);
const formatted_sub_users_count = get_formatted_sub_count(subscriber_section_user_count);
@ -458,7 +458,7 @@ export class BuddyList extends BuddyListConf {
render_section_header({
id: "buddy-list-participants-section-heading",
header_text: $t({defaultMessage: "In this conversation"}),
user_count: get_formatted_sub_count(this.participant_user_ids.length),
user_count: get_formatted_sub_count(all_participant_ids.size),
is_collapsed: this.participants_is_collapsed,
}),
),
@ -470,7 +470,7 @@ export class BuddyList extends BuddyListConf {
id: "buddy-list-users-matching-view-section-heading",
header_text,
user_count: get_formatted_sub_count(
total_human_subscribers_count - this.participant_user_ids.length,
total_human_subscribers_count - all_participant_ids.size,
),
is_collapsed: this.users_matching_view_is_collapsed,
}),