Skip to content

Commit

Permalink
feat(#141): [wip] render direct message room
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Nov 20, 2024
1 parent ff54d0b commit 51d7a3b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/components/Shell/PeerListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ import ListItem from '@mui/material/ListItem'
import ListItemText from '@mui/material/ListItemText'
import Tooltip from '@mui/material/Tooltip'
import Typography from '@mui/material/Typography'
import useTheme from '@mui/material/styles/useTheme'
import { useState } from 'react'

import { Room } from 'components/Room'
import { AudioVolume } from 'components/AudioVolume'
import { PeerNameDisplay } from 'components/PeerNameDisplay'
import { PublicKey } from 'components/PublicKey'
Expand Down Expand Up @@ -62,6 +64,7 @@ export const PeerListItem = ({
peerConnectionTypes,
peerAudioChannels,
}: PeerListItemProps) => {
const theme = useTheme()
const [showPeerDialog, setShowPeerDialog] = useState(false)

const hasPeerConnection = peer.peerId in peerConnectionTypes
Expand Down Expand Up @@ -169,6 +172,16 @@ export const PeerListItem = ({
<PublicKey publicKey={peer.publicKey} />
</AccordionDetails>
</Accordion>
<Box
mt={1}
pt={2}
display="flex"
flexDirection="column"
minHeight="350px"
bgcolor={theme.palette.background.paper}
>
<Room roomId="" userId={peer.userId} />
</Box>
</DialogContent>
<DialogActions>
<Button onClick={handleDialogClose}>Close</Button>
Expand Down

0 comments on commit 51d7a3b

Please sign in to comment.