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>
<AvatarGroup variant={'rounded'}>
{conversation.members?.map((conversationUser, index) => (
<Avatar
key={`${conversation._id.toString()}-${conversationUser._id.toString()}-convoIcon`}
alt={conversationUser?.givenName}
src={conversationUser?.picture}
sx={{
width: 30,
height: 30,
opacity: conversation.tunedInUsers?.includes(conversationUser._id.toString())
? '100%'
: '20%',
}}
/>
))}
{conversation.members?.map((conversationUser, index) => {
return (
conversationUser._id.toString() !== user._id.toString() && (
<Avatar
key={`${conversation._id.toString()}-${conversationUser._id.toString()}-convoIcon`}
alt={conversationUser?.givenName}
src={conversationUser?.picture}
sx={{
width: 30,
height: 30,
opacity: conversation.tunedInUsers?.includes(conversationUser._id.toString())
? '100%'
: '20%',
}}
/>
)
);
})}
</AvatarGroup>
</ListItemAvatar>