Repository navigation
fix: Guests note missing / disappearing - #24993
Conversation
WalkthroughThe Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
|
There was a problem hiding this comment.
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
📒 Files selected for processing (1)
akka-bbb-apps/src/main/scala/org/bigbluebutton/core/db/UserDAO.scala
✅ Automated tests have passed! |
| 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)) | ||
| } |
There was a problem hiding this comment.
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.



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