diff --git a/src/components/Comment.jsx b/src/components/Comment.jsx index 4b014d9..49f7127 100644 --- a/src/components/Comment.jsx +++ b/src/components/Comment.jsx @@ -57,8 +57,8 @@ function Comment({ comment, nav, isolated = false }) { marginLeft: isolated ? 0 : comment.reply_post_id != comment.parent_post_id - ? 20 - : 0, + ? 20 + : 0, }} onLayout={event => { setWidth(event.nativeEvent.layout.width); @@ -78,22 +78,46 @@ function Comment({ comment, nav, isolated = false }) { hideGroup={true} borderRadius={BORDER_RADIUS} /> - {comment.reply_comment_alias && ( + + {comment.identity.name != 'Anonymous' && + comment?.identity?.posted_with_username && ( + + @{comment.identity.name} + + )} + {comment.reply_comment_alias && ( + + ▶ {comment.reply_comment_alias} + + )} + {!comment?.identity?.posted_with_username && ( + + {timesago(comment.created_at)} + + )} + + {comment?.identity?.posted_with_username && ( - ▶ {comment.reply_comment_alias} + variant="labelLarge" + style={{ marginLeft: 10, flex: 1, textAlign: 'right' }}> + {timesago(comment.created_at)} )} - - {timesago(comment.created_at)} - {comment.authored_by_user && ( {post.identity.name != 'Anonymous' && ( @{post.identity.name} diff --git a/src/screens/MessagesScreen.jsx b/src/screens/MessagesScreen.jsx index 4b09c90..394b308 100644 --- a/src/screens/MessagesScreen.jsx +++ b/src/screens/MessagesScreen.jsx @@ -83,7 +83,7 @@ function MessageScreen({ navigation }) { color={colors.primary} /> - + {item.messages[item.messages.length - 1].text} - + {item.text}