fix(ui-voip): Sync voice call UI state on mount in useMediaSession - #41060
Conversation
|
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: c562f73 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (3)
📜 Recent review details⏰ Context from checks skipped due to timeout. (5)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx,js}📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)
Files:
🧠 Learnings (3)📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-02-26T19:25:44.063ZApplied to files:
📚 Learning: 2026-05-06T12:21:44.083ZApplied to files:
🔇 Additional comments (2)
WalkthroughVoIP session UI state synchronizes immediately when views mount via ChangesVoIP Session State Fix
Device ID Equality Comparison
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
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. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.6.0 #41060 +/- ##
================================================
Coverage ? 70.14%
================================================
Files ? 3361
Lines ? 129699
Branches ? 22453
================================================
Hits ? 90983
Misses ? 35400
Partials ? 3316
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
98fe35e to
c562f73
Compare
Proposed changes (including videos or screenshots)
useMediaSessionsubscribed tosessionStateChangeevents but never read the current session state on mount, relying on a side effect of the oldsetDeviceIdreference-equality bug to trigger an initial sync.After
e626fb9fixedsetDeviceIdto use value-based comparison, that accidental sync no longer fires, leaving the hook stuck at the default closed state when aMediaCallViewProvidermounts with an already-active call.Calling
updateSessionState()immediately after subscribing ensures the hook reads the real session state on mount, fixing the popout opening in the ended state,MediaCallRoomSectionnot rendering, and call actions not reflecting live state.Issue(s)
CORE-2306
Steps to test or reproduce
Further comments
Summary by CodeRabbit
Bug Fixes