Skip to content

Commit

Permalink
DMs: Fix broken messages (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Jun 9, 2023
1 parent 29b49ee commit ac383dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ export const ChatMessageListItem = memo(function ChatMessageListItem(
const { secondaryDark1, neutralLight7 } = useThemeColors()

const borderBottomColor = isAuthor ? secondaryDark1 : neutralLight7
const borderBottomWidth =
hideMessage || isCollection || isTrack ? undefined : 1
const borderBottomWidth = hideMessage || isCollection || isTrack ? 0 : 1
const unfurlStyles = {
...styles.unfurl,
borderBottomColor,
Expand Down Expand Up @@ -317,7 +316,7 @@ export const ChatMessageListItem = memo(function ChatMessageListItem(
) : null}
{!hideMessage ? (
<Hyperlink
text={messageId}
text={message.message}
styles={{
root: [
styles.message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const LinkPreview = (props: LinkPreviewProps) => {
href={href}
title={title || siteName || description || 'View Image'}
target={'_blank'}
rel='noreferrer'
rel='noreferrer noopener'
>
{description || title ? (
<>
Expand Down

0 comments on commit ac383dc

Please sign in to comment.