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 Chat usage without layoutcontext #1027

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Nov 19, 2024

The functionality of the <Chat /> component should not depend on the presence of LayoutContext.
There was a regression when we introduced a close button for chat as the ChatToggle button requires the LayoutContext. This PR fixes that by only rendering the ChatToggle if a LayoutContext is actually present.

Copy link

changeset-bot bot commented Nov 19, 2024

🦋 Changeset detected

Latest commit: 4570caa

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

@lukasIO lukasIO requested a review from Ocupe November 19, 2024 12:19
Copy link
Contributor

github-actions bot commented Nov 19, 2024

size-limit report 📦

Path Size
LiveKitRoom only 6.02 KB (0%)
LiveKitRoom with VideoConference 29.77 KB (-0.02% 🔽)
All exports 36.58 KB (+0.03% 🔺)

Copy link
Contributor

@Ocupe Ocupe left a comment

Choose a reason for hiding this comment

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

👍

@lukasIO lukasIO merged commit 2b582d3 into main Nov 19, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/chat-without-layout branch November 19, 2024 13:21
@github-actions github-actions bot mentioned this pull request Nov 19, 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