Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set attributes of remote participants on participant creation #1344

Merged

Conversation

holzgeist
Copy link
Contributor

@holzgeist holzgeist commented Dec 5, 2024

Otherwise the attributes are not set during the "ParticipantConnected" event, which makes it difficult to react to this event accordingly.

I didn't test for this explicitly, but if I understand the code correctly, there is one potentially problematic side effect: "ParticipantAttributesChanged" is not emitted anymore on connect. Which sounds fine to me, as the attributes didn't change from any previous setting, they just started that way. However, it might break workflows

Otherwise the attributes are not set during the "ParticipantConnected"
event
Copy link

changeset-bot bot commented Dec 5, 2024

🦋 Changeset detected

Latest commit: 238f37b

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

This PR includes changesets to release 1 package
Name Type
livekit-client 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

@davidzhao davidzhao requested a review from lukasIO December 9, 2024 06:36
@lukasIO lukasIO changed the title fix: set attributes of remote participants earlier fix: set attributes of remote participants on participant creation Dec 9, 2024
Copy link
Contributor

@lukasIO lukasIO left a comment

Choose a reason for hiding this comment

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

thanks for the PR, that's a good catch!

@lukasIO lukasIO merged commit 5ecc1d9 into livekit:main Dec 9, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Dec 9, 2024
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.

2 participants