Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this needs splitting for sure #20

Closed

Conversation

evykassirer
Copy link
Owner

No description provided.

We need to have the lists of rendered users so we can check if
we should be showing the links. This commit fixes a bug where
we showed the "view all subscribers" link even if all subscribers
were visible on the screen.
@evykassirer evykassirer force-pushed the buddy-list-fix-has-inactive-users-matching-view branch from ba3c1f7 to 90132ec Compare November 27, 2024 18:31
@evykassirer evykassirer force-pushed the buddy-list-fix-has-inactive-users-matching-view branch from 90132ec to ada7a9e Compare November 27, 2024 18:41
@@ -443,20 +439,6 @@ export class BuddyList extends BuddyListConf {

const {current_sub, total_human_subscribers_count, other_users_count} = this.render_data;
$(".buddy-list-subsection-header").empty();

// If we're in the mode of hiding headers, that means we're only showing the "others"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add to the commit message that this now escapes the return

@@ -426,7 +427,7 @@ export class BuddyList extends BuddyListConf {
}

render_section_headers(): void {
const {hide_headers, all_participant_ids} = this.render_data;
const {hide_headers, all_participant_ids, total_human_subscribers_count} = this.render_data;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs squashing

This also fixes a bug where the code to hide the matching
view container didn't run when we early-returned from
`render_section_headers`. Now it always runs in
`display_or_hide_sections`.
@evykassirer evykassirer force-pushed the buddy-list-fix-has-inactive-users-matching-view branch from ada7a9e to b65bef3 Compare November 27, 2024 19:34
@evykassirer evykassirer deleted the buddy-list-fix-has-inactive-users-matching-view branch November 27, 2024 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant