no need to show current people in room in so many places

in the header of the conversation in details and in side panel terminal
This commit is contained in:
talksik
2022-05-29 10:57:00 -05:00
parent 8f9cf5bcd2
commit 8931181d8b
+9 -42
View File
@@ -329,7 +329,7 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
// when user wants to talk, // when user wants to talk,
// unmute them and send clip for everyone to hear in the distance // unmute them and send clip for everyone to hear in the distance
const handleBroadcast = useCallback(() => { const handleBroadcast = useCallback(() => {
if (!selectedConversationId) { if (!selectedConversation) {
enqueueSnackbar('You must select a conversation first!!!', { variant: 'warning' }); enqueueSnackbar('You must select a conversation first!!!', { variant: 'warning' });
return; return;
} }
@@ -350,7 +350,7 @@ export function TerminalProvider({ children }: { children?: React.ReactNode }) {
mediaRecorder.start(); mediaRecorder.start();
setIsUserSpeaking(true); setIsUserSpeaking(true);
}, [ }, [
selectedConversationId, selectedConversation,
setIsUserSpeaking, setIsUserSpeaking,
userAudioStream, userAudioStream,
mediaRecorder, mediaRecorder,
@@ -925,7 +925,8 @@ function ConversationDetails() {
} }
function ConversationHistory() { function ConversationHistory() {
const { isCloudDoingMagic } = useTerminal(); const { isCloudDoingMagic, selectedConversation } = useTerminal();
return ( return (
<Container maxWidth="xs"> <Container maxWidth="xs">
<Stack <Stack
@@ -988,46 +989,12 @@ function ConversationHistory() {
</Box> </Box>
</Stack> </Stack>
</Paper> </Paper>
</Stack>
{isCloudDoingMagic && ( {isCloudDoingMagic && (
<IconButton color="secondary"> <IconButton size="small" color="secondary">
<FiCloudRain /> <FiCloudRain />
</IconButton> </IconButton>
)} )}
<Stack
justifyContent={'flex-start'}
alignItems={'center'}
sx={{
pt: 2,
}}
>
<Typography variant="caption">right now</Typography>
<Paper elevation={24} sx={{ p: 1, width: '100%' }}>
<Stack direction={'row'} alignItems="center">
<Stack spacing={2} direction={'row'} alignItems={'center'}>
<Avatar
alt={'Arjun Patel'}
src="https://lh3.googleusercontent.com/ogw/ADea4I6TRqnIptWNP25-iXdusoAHafj-cUPYkO53xKT2_H0=s64-c-mo"
/>
<Typography color={'GrayText'} variant="overline">
{'Arjun Patel'}
</Typography>
</Stack>
<Box
sx={{
ml: 'auto',
color: 'GrayText',
}}
>
<FiPlay />
</Box>
</Stack>
</Paper>
</Stack> </Stack>
</Container> </Container>
); );