Skip to content

Commit

Permalink
Merge pull request #16 from SimerusM/update-meeting-ui
Browse files Browse the repository at this point in the history
fix self user showing
  • Loading branch information
16BitNarwhal authored Aug 29, 2024
2 parents d265f56 + e9b56b7 commit e2013a7
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 e2013a7

Please sign in to comment.