Skip to content

Commit

Permalink
fix self user showing
Browse files Browse the repository at this point in the history
  • Loading branch information
16BitNarwhal committed Aug 29, 2024
1 parent 82bced7 commit e9b56b7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/src/pages/MeetingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,14 @@ const MeetingPage = () => {
<div className="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-4">
<VideoElement stream={rtcHandler.current.localStream} muted={true} peerName="You" />
{Object.entries(peers).map(([peerUsername, peer]) => (
<VideoElement
key={peerUsername}
stream={peer.stream}
muted={false}
peerName={peerUsername}
/>
peerUsername !== username && (
<VideoElement
key={peerUsername}
stream={peer.stream}
muted={false}
peerName={peerUsername}
/>
)
))}
</div>
<div className="w-1/4 bg-white p-4 flex flex-col">
Expand Down

0 comments on commit e9b56b7

Please sign in to comment.