Skip to content

Commit

Permalink
Fix Chat usage without layoutcontext (#1027)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Nov 19, 2024
1 parent 2c64b46 commit 2b582d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-tables-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@livekit/components-react": patch
---

Fix Chat usage without layoutcontext
8 changes: 5 additions & 3 deletions packages/react/src/prefabs/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ export function Chat({
<div {...props} className="lk-chat">
<div className="lk-chat-header">
Messages
<ChatToggle className="lk-close-button">
<ChatCloseIcon />
</ChatToggle>
{layoutContext && (
<ChatToggle className="lk-close-button">
<ChatCloseIcon />
</ChatToggle>
)}
</div>

<ul className="lk-list lk-chat-messages" ref={ulRef}>
Expand Down

0 comments on commit 2b582d3

Please sign in to comment.