Skip to content

fix: Guests note missing / disappearing - #24993

Merged
antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
ramonlsouza:issue-24980
Apr 30, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v3.0.x-developfrom
ramonlsouza:issue-24980

Conversation

@ramonlsouza

Copy link
Copy Markdown
Member

What does this PR do?

Adjusts updateVoiceUserJoined to only update guest status on audio join for dial-in users

Screencast.from.2026-04-29.09-53-39.mp4

Closes Issue(s)

Closes #24980

How to test

  1. Create new meeting
  2. Join as moderator
  3. Create new join url with guest=true and role=VIEWER and join in incognito window (but cancel audio dialog!)
  4. See guest user in user list with "guest" label, click on user and see no promote to moderator button
  5. Connect to audio in the guest window
  6. Guest label and user dropdown options should remain the same for this user

@coderabbitai

coderabbitai Bot commented Apr 29, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

The updateVoiceUserJoined method in UserDAO now conditionally updates user database records based on whether the user is a dial-in participant. Dial-in users (identified by intId prefix) update all fields including guest, while non-dial-in users update only guestStatus, authed, and joined, preserving the existing guest flag. This prevents non-dial-in guest users from losing their guest status when joining voice audio.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'fix: Guests note missing / disappearing' directly matches the primary bug described in issue #24980 and aligns with the changeset's objective.
Description check ✅ Passed The PR description clearly relates to the changeset by explaining the technical adjustment (updateVoiceUserJoined now distinguishes dial-in users) and links to issue #24980 with detailed test steps.
Linked Issues check ✅ Passed The code changes in UserDAO.scala align with issue #24980 objectives by conditionally updating the guest field only for dial-in users, preserving the guest status when non-dial-in users connect to audio.
Out of Scope Changes check ✅ Passed All changes in UserDAO.scala are scoped to fixing the guest label disappearance issue when users connect to audio, with no unrelated modifications detected.
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
Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.

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

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserDAO.scala`:
- Around line 131-145: The DAO currently determines dial-in by checking
voiceUserState.intId prefix in updateVoiceUserJoined, which mismatches
VoiceApp's dial-in logic; change updateVoiceUserJoined to accept an explicit
Boolean (e.g., isDialInUser) and update the DatabaseConnection branch to use
that flag instead of recalculating from intId (ensure the branch that updates
u.guest is executed when isDialInUser is true); then update the call site(s) in
VoiceApp (where isDialInUser is already computed) to pass this new parameter
into UserDAO.updateVoiceUserJoined so both layers share the same source of
truth.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: f925aa91-aa93-41b4-843b-a27330ed0042

📥 Commits

Reviewing files that changed from the base of the PR and between 062b3ca and 013de83.

📒 Files selected for processing (1)
  • akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserDAO.scala

@ramonlsouza ramonlsouza added this to the Release 3.0 milestone Apr 29, 2026
@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@gustavotrott gustavotrott left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@antobinary
antobinary merged commit ec0390a into bigbluebutton:v3.0.x-develop Apr 30, 2026
33 checks passed
Comment on lines +131 to +145
val isDialIn = voiceUserState.intId.startsWith(IntIdPrefixType.DIAL_IN)
DatabaseConnection.enqueue(
TableQuery[UserDbTableDef]
.filter(_.meetingId === voiceUserState.meetingId)
.filter(_.userId === voiceUserState.intId)
.map(u => (u.guest, u.guestStatus, u.authed, u.joined))
.update((false, "ALLOW", true, true))
if (isDialIn) {
TableQuery[UserDbTableDef]
.filter(_.meetingId === voiceUserState.meetingId)
.filter(_.userId === voiceUserState.intId)
.map(u => (u.guest, u.guestStatus, u.authed, u.joined))
.update((false, "ALLOW", true, true))
} else {
TableQuery[UserDbTableDef]
.filter(_.meetingId === voiceUserState.meetingId)
.filter(_.userId === voiceUserState.intId)
.map(u => (u.guestStatus, u.authed, u.joined))
.update(("ALLOW", true, true))
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For the sake of future-proofing this and also making it explicit: I suggest moving the presumed arguments (guest, guestStatus, authed and joined) to parameters instead of hardcoded constants.
This update method is only called in VoiceApp. The location where it is called already does dial in branching. Ideally, those arguments should come from the existing User2x if applicable, or else default to the dial in values at the call site.

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.

Guests note missing / disappearing

4 participants