Skip to content

Commit

Permalink
Merge pull request #137 from Unshut-Labs/saulmc/convo-style-fixes
Browse files Browse the repository at this point in the history
fix: message tails, reaction count alignment, group message sender
  • Loading branch information
saulmc authored Jun 24, 2024
2 parents b282f06 + 4e6c5c6 commit cc66061
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions components/Chat/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,10 @@ function ChatMessage({ message, colorScheme, isGroup, isFrame }: Props) {
<MessageSenderAvatar message={message} />
)}
<View style={{ flex: 1 }}>
{isGroup && !message.fromMe && showInBubble && (
<MessageSender message={message} />
)}
{isGroup &&
!message.fromMe &&
!message.hasPreviousMessageInSeries &&
showInBubble && <MessageSender message={message} />}
<View
style={{
alignSelf: message.fromMe ? "flex-end" : "flex-start",
Expand Down Expand Up @@ -369,7 +370,7 @@ function ChatMessage({ message, colorScheme, isGroup, isFrame }: Props) {
</Text>
</TouchableOpacity>
)}
{!message.hasNextMessageInSeries && (
{!message.hasNextMessageInSeries && message.fromMe && (
<View
style={[
styles.statusContainer,
Expand Down Expand Up @@ -481,7 +482,7 @@ const useStyles = () => {
},
statusContainer: {
marginLeft: "auto",
marginVertical: 7,
marginVertical: 5,
},
linkToFrame: {
fontSize: 11,
Expand Down
2 changes: 1 addition & 1 deletion components/Chat/Message/MessageActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export default function ChatMessageActions({
{!message.hasNextMessageInSeries &&
!isFrame &&
!isAttachment &&
isTransaction &&
!isTransaction &&
(Platform.OS === "ios" || Platform.OS === "web") && (
<MessageTail
style={[
Expand Down
3 changes: 2 additions & 1 deletion components/Chat/Message/MessageReactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const useStyles = () => {
paddingHorizontal: 6,
borderRadius: 8,
flexDirection: "row",
alignItems: "center",
},
emojis: {
fontSize: 16,
Expand All @@ -121,7 +122,7 @@ const useStyles = () => {
count: {
fontSize: 15,
color: textSecondaryColor(colorScheme),
marginLeft: 5,
marginLeft: 4,
},
});
};

0 comments on commit cc66061

Please sign in to comment.