Skip to content

Commit

Permalink
Merge pull request #148 from Unshut-Labs/saulmc/group-avatar-in-series
Browse files Browse the repository at this point in the history
fix: repeated avatar in series
  • Loading branch information
alexrisch authored Jun 26, 2024
2 parents e94b40d + fb825d4 commit 3f5d86b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions components/Chat/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,19 @@ const MessageSenderAvatar = ({ message }: { message: MessageToDisplay }) => {
const styles = useStyles();
return (
<View style={styles.groupSenderAvatarWrapper}>
<Avatar
size={Platform.OS === "ios" ? 24 : 21}
uri={getPreferredAvatar(senderSocials)}
/>
{!message.hasNextMessageInSeries ? (
<Avatar
size={Platform.OS === "ios" ? 24 : 21}
uri={getPreferredAvatar(senderSocials)}
/>
) : (
<View
style={{
width: Platform.OS === "ios" ? 24 : 21,
height: Platform.OS === "ios" ? 24 : 21,
}}
/>
)}
</View>
);
};
Expand Down

0 comments on commit 3f5d86b

Please sign in to comment.