cleaning up avatars in the inbox as not needed really

This commit is contained in:
talksik
2022-06-20 07:40:38 -05:00
parent 312c09f43d
commit a10ed774e9
+18 -14
View File
@@ -251,20 +251,24 @@ export function ConversationRow({
<ListItemAvatar> <ListItemAvatar>
<AvatarGroup variant={'rounded'}> <AvatarGroup variant={'rounded'}>
{conversation.members?.map((conversationUser, index) => ( {conversation.members?.map((conversationUser, index) => {
<Avatar return (
key={`${conversation._id.toString()}-${conversationUser._id.toString()}-convoIcon`} conversationUser._id.toString() !== user._id.toString() && (
alt={conversationUser?.givenName} <Avatar
src={conversationUser?.picture} key={`${conversation._id.toString()}-${conversationUser._id.toString()}-convoIcon`}
sx={{ alt={conversationUser?.givenName}
width: 30, src={conversationUser?.picture}
height: 30, sx={{
opacity: conversation.tunedInUsers?.includes(conversationUser._id.toString()) width: 30,
? '100%' height: 30,
: '20%', opacity: conversation.tunedInUsers?.includes(conversationUser._id.toString())
}} ? '100%'
/> : '20%',
))} }}
/>
)
);
})}
</AvatarGroup> </AvatarGroup>
</ListItemAvatar> </ListItemAvatar>