Skip to content

fix(core): Harden breakoutRoomsPrivateChatEnabled and disabledFeatures=privateChat - #26269

Merged
ramonlsouza merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:fix-26227-breakout-private-chat-40
Oct 28, 2026
Merged

ramonlsouza merged 3 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:fix-26227-breakout-private-chat-40

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Makes breakoutRoomsPrivateChatEnabled=false do what the API documentation says: the breakout rooms of such a meeting offer no private chat between attendees. Private chats that involve a moderator stay available in the rooms, as they do in any meeting created with disabledFeatures=privateChat.

Two commits, one per issue:

  • bbb-web (closes breakoutRoomsPrivateChatEnabled=false has no effect: viewers can still chat privately inside breakout rooms #26227): processCreateBreakoutRoom now passes the parent's privateChatEnabled to each room, and processCreateParams adds privateChat to the room's disabledFeatures when it is false. That is the mechanism the client and bbb-apps-akka already enforce (CreateGroupChatReqMsgHdlr, SendGroupChatMessageMsgHdlr), so no new check is needed anywhere else. Rooms created through the API with isBreakout=true go through the same code, so the parameter applies to them too.
  • bigbluebutton-html5 (closes disabledFeatures=privateChat: viewers still get the private chat button for other viewers, and the chat they open goes nowhere (regression of #23371 in 4.0) #26229): the participants list no longer offers an attendee a private chat with another attendee when privateChat is disabled. allowedToChatPrivately ended with || !userChatIsLocked, which let every attendee the moderator had not locked through regardless of the feature. The unlocked-attendee exemption now requires private chat to be enabled, and the attendee-to-moderator option stands on the server rule alone (a private chat with a moderator stays allowed while the feature is disabled). Without this commit the bbb-web fix would still be enforced by the server, but the attendee would keep a button that opens an empty "Private Chat" tab.

The breakoutRoomsPrivateChatEnabled entry of the API docs gets one sentence about the moderator case.

Closes Issue(s)

Closes #26227
Closes #26229

Tests

Three new Playwright tests, all @ci:

Test File What it checks
breakoutRoomsPrivateChatEnabled=false removes the private chat between attendees in the rooms breakout/breakout.spec.ts Two attendees in Room 1. The parent still offers the private chat between them (control). The room's own meeting row has breakoutPolicies.privateChatEnabled=false and privateChat in disabledFeatures (read over the GraphQL websocket with the attendee's own session), and the participants list of the room offers no private chat with the other attendee.
Disabled Features > Private chat parameters/parameters.spec.ts With disabledFeatures=privateChat an attendee is offered a private chat with the moderator but not with the other attendee.
Disabled Features > Private chat (exclude) parameters/parameters.spec.ts Control: with the feature excluded again the attendee-to-attendee option is back.

The GraphQL websocket helper that api/disabledFeatures.ts used moves to core/graphql.ts so the breakout test can share it; user/util.ts gets two selector helpers for a participant row and its private chat option.

Run on a server built from v4.0.x-develop before and after the fix (A/B):

Run breakoutRoomsPrivateChatEnabled=false ... Private chat Private chat (exclude)
A: before the fix FAIL (the room has privateChatEnabled=true) FAIL (the option is shown) PASS
B: with the fix PASS PASS PASS

Related suites on the fixed packages (Chromium, CI settings): breakout/, chat/, api/ and user/ with the gate selection, 195 passed, 1 flaky (Lock see other viewers cursor, passed on retry), 1 failed: Breakout room inherits client settings override from parent meeting, which under CI settings requires allowOverrideClientSettingsOnCreateCall=true on the server. The test server has it off and the parent meeting itself does not take the override, so that failure is the environment, not this change. Create Parameters > Disabled Features: 39 passed.

Notes

…g created with breakoutRoomsPrivateChatEnabled=false

bbb-apps-akka sends the parent's privateChatEnabled with every room it asks
bbb-web to create, but processCreateBreakoutRoom never put it into the room's
create parameters, so every room fell back to the server default of
breakoutRoomsPrivateChatEnabled=true. Nothing read the room's value anyway:
the client and bbb-apps-akka only consult disabledFeatures and the lock
settings before offering or creating a private chat.

Pass the value on, and when it is false add privateChat to the room's
disabledFeatures while its parameters are processed. That is the one
mechanism the client (no private chat option between attendees) and
bbb-apps-akka (CreateGroupChatReqMsgHdlr and SendGroupChatMessageMsgHdlr
refuse attendee-to-attendee private chats) already enforce, and it keeps the
private chats that involve a moderator available, as the feature does
elsewhere. A room created through the API with isBreakout=true takes the same
path, so breakoutRoomsPrivateChatEnabled=false on such a room applies as well.

Closes bigbluebutton#26227
…rivateChat is disabled

allowedToChatPrivately ended with `|| !userChatIsLocked`, so an attendee the
lock settings did not lock was offered a private chat with everyone, whatever
disabledFeatures=privateChat said. The server refuses that chat
(CreateGroupChatReqMsgHdlr only lets a private chat through when a moderator
is involved), so the attendee got an empty "Private Chat" tab and the message
went nowhere. 3.0 has hidden the option since bigbluebutton#23433.

Keep the exemption for an attendee the moderator unlocked, but only while
private chat is enabled, and let the attendee-to-moderator option stand on the
server rule alone: a private chat with a moderator stays allowed while the
feature is disabled, so the option stays offered.

Closes bigbluebutton#26229
…s=privateChat in the participants list

Three tests for the gate:

- breakout: a parent created with breakoutRoomsPrivateChatEnabled=false puts
  two attendees in the first room. The parent still offers the private chat
  between them (control), the room's own meeting row carries
  privateChatEnabled=false and privateChat among its disabled features, and
  the room's participants list offers no private chat with the other attendee.
- parameters, Disabled Features: with privateChat disabled an attendee is
  offered a private chat with the moderator but not with the other attendee;
  the exclude twin puts the attendee-to-attendee option back.

The room's row is read over the GraphQL websocket with the attendee's own
session, so the helper that api/disabledFeatures.ts used for that moves to
core/graphql.ts; user/util.ts gets the selectors for a participant row and
its private chat option, which both new helpers use.

Before the fixes the breakout test fails on the room's privateChatEnabled
(true) and the Disabled Features test on the option an attendee gets for the
other attendee; with them all three pass.
@antobinary antobinary added this to the Release 4.0 milestone Oct 28, 2026
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d174f003-0d9f-4869-9033-72f9fb77e7d2
Commits

Reviewing files that changed from the base of the PR and between 77a8dc5 and 07fa899.

Files selected for processing: 12
  • bbb-common-web/src/main/java/org/bigbluebutton/api/MeetingService.java
  • bbb-common-web/src/main/java/org/bigbluebutton/api/ParamsProcessorUtil.java
  • bigbluebutton-html5/imports/ui/components/user-list/user-list-participants/list-item/service.ts
  • bigbluebutton-tests/playwright/api/disabledFeatures.ts
  • bigbluebutton-tests/playwright/breakout/breakout.spec.ts
  • bigbluebutton-tests/playwright/breakout/join.ts
  • bigbluebutton-tests/playwright/core/graphql.ts
  • bigbluebutton-tests/playwright/parameters/constants.ts
  • bigbluebutton-tests/playwright/parameters/disabledFeatures.ts
  • bigbluebutton-tests/playwright/parameters/parameters.spec.ts
  • bigbluebutton-tests/playwright/user/util.ts
  • docs/docs/data/create.tsx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

Breakout-room creation now passes the private-chat setting into room parameters and disables attendee-to-attendee private chat when that setting is false. The participant list retains private chat with moderators while restricting attendee-to-attendee chat when private chat is disabled. Playwright tests cover breakout-room behavior and meeting parameters, including the private-chat exclusion case.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: atilau19

Merge Risk: Minimal · up to 07fa8

No actionable issue remains in the reviewed private-chat changes; they are ready for normal merge checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely identifies both main fixes: breakout-room private chat handling and disabled private chat behavior.
Description check Passed The description directly explains the implementation changes, expected behavior, documentation update, linked issues, and test coverage.
Linked Issues check Passed The PR satisfies both direct coding requirements. For #26227, processCreateBreakoutRoom now copies message.privateChatEnabled into ApiParams.BREAKOUT_ROOMS_PRIVATE_CHAT_ENABLED. `processCreatePa…
Out of Scope Changes check Passed The changes stay within #26227 and #26229. The GraphQL helper move, participant selectors, breakout and parameter test setup, and API documentation update directly support the required behavior and it…
Full details: Linked Issues check

Explanation

The PR satisfies both direct coding requirements. For #26227, processCreateBreakoutRoom now copies message.privateChatEnabled into ApiParams.BREAKOUT_ROOMS_PRIVATE_CHAT_ENABLED. processCreateParams then adds privateChat to breakout-room disabledFeatures when the value is false. The added Playwright test checks the room setting and the missing attendee-to-attendee option. For #26229, unlockedUserCondition now requires isPrivateChatEnabled and isChatEnabled, while viewerToModeratorOverride keeps moderator chat available when private chat is disabled. The two added parameter tests cover the disabled and enabled cases.

Full details: Out of Scope Changes check

Explanation

The changes stay within #26227 and #26229. The GraphQL helper move, participant selectors, breakout and parameter test setup, and API documentation update directly support the required behavior and its verification. No unrelated product behavior or unrelated files are changed.

Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 4 functions across 12 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@ramonlsouza
ramonlsouza merged commit 4d27ec6 into bigbluebutton:v4.0.x-develop Oct 28, 2026
62 of 63 checks passed
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 28, 2026
v4.0.x-develop now carries the bigbluebutton#26227/bigbluebutton#26229 tests (PR bigbluebutton#26269) that this
branch had cherry-picked. The three files both sides changed (core/graphql.ts,
api/disabledFeatures.ts, breakout/join.ts) are identical on the upstream side
and the cherry-pick, so the merge keeps this branch's version, which adds the
shared helpers on top of them.
antobinary added a commit that referenced this pull request Oct 28, 2026
* docs: doc sync for 4.0 since 4.0.0-rc.5

Range v4.0.0-rc.5..v4.0.x-develop 0f90159 (52 commits). No changes to
bigbluebutton.properties, settings.yml, akka-apps application.conf,
ApiParams, the create/join tables, resources.xml or bbb-conf. The Grails 8
upgrade (#25466) brought its own docs; its "Upgraded components" list was
checked against the Spring Boot 4.1.1 and Grails 8.0.0 BOMs and the build
files (Spring Framework 7.0.9, Groovy 5.1.3, Tomcat 11.0.26, Gradle 9.8.0).

administration/customize.md, "Configuration of gladia.io":
- #26010 moved bbb-transcription-controller from v0.2.10 to v0.4.0, which
  talks to Gladia's v2 live API and reads the key from gladia.key
  (gladia-proxy.js); nothing reads x_gladia_key in gladia.startMessage any
  more, so the documented command left the server without a key. Set
  gladia.key instead, and drop the "3.0 or higher, use >0.3.x" paragraph
  and its startMessage (bit_depth and endpointing are now gladia.bitDepth
  and gladia.endpointing). Mention the translation options.
- Warn that the package's after-install.sh copies default.example.yml
  over default.yml on every install and upgrade, and every BigBlueButton
  upgrade reinstalls the package (its version comes from
  bigbluebutton-release). That removes the key and the ESL password
  bbb-conf --setip writes, and the service then crash-loops with "FSESL
  connection authentication error".
- Say up front which service applies: 4.0 defaults to the LiveKit audio
  bridge, where bbb-livekit-stt (not packaged; uv or Docker) does the
  work; bbb-transcription-controller forks audio from FreeSWITCH and only
  covers audioBridge=bbb-webrtc-sfu. The client settings (audioCaptions
  enabled, provider gladia) apply to both: bbb-livekit-stt starts on the
  speech-locale event that carries the provider.

new-features.md:
- "bbb-transcription-controller 0.4.0 (Gladia v2)" under Other notable
  changes, as the upgrade note for the above (rc.1 to rc.5 shipped
  v0.2.10).
- "Learning Dashboard: polls and quizzes numbered in the order they were
  asked" (#25988): untitled polls are numbered chronologically, the
  header tooltip shows when they were asked, and the Download Session
  Data CSV uses the same order.

Not documented: the UI fixes (#25942, #25993, #25974), the recording
panzoom fix (#25991), the bbb-ui-components-react and MUI bumps, the
pres-checker build cleanup, the Tomcat parameter limit and upload limits
(moved to Spring Boot keys in bbb-web's application.properties with the
same values), and the Jackson string limit (raised and dropped again).

(cherry picked from commit bcaed58)

* docs: iteration doc sync for 4.0.1

Documents the v4.0.0..v4.0.x-develop (cd89568) delta that the per-PR
docs commits in the range did not cover.

new-features.md
- Usability: "Live captions transcribed on the user's device" for
  public.app.audioCaptions.speechProcessing (#26179)
- Dedicated Audio settings tab: the processing pick is now scoped to the
  browser session and the meeting, public.app.audioFilterStorage (#25744)
- Behind the scenes: fewer video-grid re-renders (#26096), lock settings
  changes without reconnecting viewers (#26004), client modals on
  BBBModal (#25829), bbb-web Grails 2 cleanup (#26002)
- Media: "Last-N audio for the LiveKit bridge (experimental)" (#26211)
- Other notable changes: component versions in 4.0.1 (LiveKit stack
  #25912, bbb-webrtc-recorder 0.18.0, bbb-webrtc-sfu 2.25.0-beta.3,
  bbb-playback 5.4.8, Tomcat 11.0.27 #26241, Gradle 9.8.1 #26259,
  FreeSWITCH rtp-port-usage-robustness, livekit-sip rtp_port default),
  minimum Safari 14.1 (WeakRef, #25912), password-protected Redis for
  bbb-graphql-actions (#26110)
- Upgraded components list: Gradle 9.8.1, Tomcat 11.0.27
- Recent releases: 4.0.1 (the tag does not exist yet)
- Client settings / Added: speechProcessing, audioFilterStorage,
  public.chat.announceUserAwayStatusInChat (#26090),
  public.media.livekit.selectiveSubscription.lastN; the existing
  paginationToggleModeratorOnly bullet is tagged 4.0.1

customize.md
- speechProcessing was added in 4.0.1, not 4.0
- Advanced Filtering: paragraph on audioFilterStorage
- Audio: new section "Play only the most relevant microphones (Last-N)"

api.md
- New "Updated in 4.0.1" block. The userdata-bbb_parent_room_moderator
  removal (#26087) moves there from the 4.0 block: it landed after v4.0.0.

Left out on purpose: fixes (#26269, #26250, #26118, #26085, #26212 and
the rest), the presenter authorization change (#25887), test/CI work and
dependency bumps belong in the release notes, not in the docs. akka-apps
application.conf, ApiParams.java and LockSettingsParams.java did not
change in the range.

* docs: keep the 4.0.1 join note in the 4.0 block, drop four sections

api.md
- userdata-bbb_parent_room_moderator stays in the 4.0 "Removed
  parameters" line, marked "removed in 4.0.1", instead of a separate
  "Updated in 4.0.1" block.

new-features.md
- Drop the 4.0.1 "Behind the scenes" subsections (video-grid
  re-renders, lock settings without reconnects, BBBModal, bbb-web
  cleanup): release-notes material, not documentation.
- Drop "Learning Dashboard: polls and quizzes numbered in the order
  they were asked", carried over from the rc.5 sync.

* docs: drop the "Other notable changes" entries added for 4.0.1

new-features.md
- Drop "Component versions in 4.0.1", "Minimum Safari version is 14.1",
  "Password-protected Redis for bbb-graphql-actions" and the
  "bbb-transcription-controller 0.4.0 (Gladia v2)" note carried over
  from the rc.5 sync. The Safari floor and the Redis password are
  already documented on their own pages; the version bumps belong in
  the release notes.

* docs: drop the customize.md changes from the 4.0.1 sync

customize.md
- Back to its v4.0.x-develop content: no Last-N section, no
  audioFilterStorage paragraph, speechProcessing stays "added in 4.0",
  and the Gladia v2 edits from the rc.5 sync cherry-pick are gone too.

new-features.md
- The Last-N section no longer links to the dropped customize.md
  section; the client-settings bullet still links to it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants