Skip to content

Use predictable order to list available users#58

Closed
samuelwei wants to merge 1 commit into
bigbluebutton:v0.0.xfrom
samuelwei:fix-user-list-random-order
Closed

Use predictable order to list available users#58
samuelwei wants to merge 1 commit into
bigbluebutton:v0.0.xfrom
samuelwei:fix-user-list-random-order

Conversation

@samuelwei

Copy link
Copy Markdown
Contributor

What does this PR do?

The list of available users is now sorted by name, resulting on the fixed order if the user list doesn't change.

The previous implementation resulted in a flickering user list, that should be fixed with this issue.

Closes Issue(s)

Closes #57

@gustavotrott

Copy link
Copy Markdown

I believe the hook useUsersBasicInfo should be used here, and the query should include an order_by clause from the start.
That way, we can prevent unnecessary updates.
With your patch, the sorting fixes the bug visually, but the component will still receive updates and trigger network traffic just because the database changes the order (even if the data itself hasn’t changed).

See: bigbluebutton/bigbluebutton-html-plugin-sdk#206

@samuelwei

Copy link
Copy Markdown
Contributor Author

@gustavotrott That would be great!

@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@antobinary

Copy link
Copy Markdown
Member

Closing in favor of #71

@antobinary antobinary closed this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List of users shuffling in options menu

3 participants