cleaning up avatars in the inbox as not needed really
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user