Skip to content

Conversation

@1egoman
Copy link
Contributor

@1egoman 1egoman commented Dec 8, 2025

This pull request fixes a bug where local participant tracks were being returned as null when they were muted by accident. I think some code was copied without fully understanding the implications here.

Also, at the same time, I realized that useSession().local.microphoneTrack was TrackReference | null, but useAgent().microphoneTrack was TrackReference | undefined - they really should match. So, I migrated the useSession version to return undefined instead because that is the form that better fits into other machinery within this project. I am considering this a "bugfix" even though it is technically a small breaking api change so I only did a patch version bump.

@changeset-bot
Copy link

changeset-bot bot commented Dec 8, 2025

🦋 Changeset detected

Latest commit: adec788

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@livekit/components-react Patch
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen Patch

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

@1egoman 1egoman requested review from davidzhao and lukasIO December 8, 2025 16:19
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lg

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2025

size-limit report 📦

Path Size
LiveKitRoom only 6 KB (0%)
LiveKitRoom with VideoConference 32.46 KB (0%)
All exports 43.23 KB (-0.14% 🔽)

@1egoman 1egoman merged commit 35a44b0 into main Dec 8, 2025
6 checks passed
@1egoman 1egoman deleted the rg/fix-local-participant-muted branch December 8, 2025 16:21
@github-actions github-actions bot mentioned this pull request Dec 8, 2025
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