Skip to content

fix(layout): Layout observer with userdata-bbb_hide_sidebar_navigation=true now properly resolves - #24784

Merged
prlanzarin merged 1 commit into
bigbluebutton:v4.0.x-releasefrom
lfzawacki:fix-hide-navigation-loop
Mar 25, 2026
Merged

prlanzarin merged 1 commit into
bigbluebutton:v4.0.x-releasefrom
lfzawacki:fix-hide-navigation-loop

Conversation

@lfzawacki

Copy link
Copy Markdown
Contributor

This fixes a bug where joining with userdata-bbb_hide_sidebar_navigation=true caused the client to spam SetUserClientSettingsReqMsg and overload the server. This happened because of the return clause that was reached before checkedUserSettings.current = true; was called. The solution was to move the event propagation to after all the other events and the removal of the return clause.

@coderabbitai

coderabbitai Bot commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 07841a30-4720-436b-ab5b-6b38ce1f3259

📥 Commits

Reviewing files that changed from the base of the PR and between 44dc00e and 37ba2e5.

📒 Files selected for processing (1)
  • bigbluebutton-html5/imports/ui/components/layout/observer.tsx

Walkthrough

The LayoutObserver component's initialization path was modified to change when sidebar navigation state updates occur. An early return that prevented subsequent state dispatches when bbb_hide_sidebar_navigation was enabled was removed. The sidebar suppression logic now executes later in the initialization block, after dispatching initial sidebar and content panel state, allowing all state updates to proceed while ultimately forcing sidebar navigation and content visibility to false based on the configuration setting.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main fix: addressing a layout observer bug related to the bbb_hide_sidebar_navigation flag that now properly resolves.
Description check ✅ Passed The description clearly explains the bug being fixed, its root cause, and the solution, all directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.

Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary antobinary added this to the Release 4.0 milestone Mar 20, 2026
@prlanzarin
prlanzarin merged commit d0d100e into bigbluebutton:v4.0.x-release Mar 25, 2026
34 checks passed
@lfzawacki
lfzawacki deleted the fix-hide-navigation-loop branch October 16, 2026 19:39
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.

3 participants