Skip to content

Commit

Permalink
refactor: remove const
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Marins committed Apr 13, 2022
1 parent 37c5111 commit 6e9d830
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ const MessageContent: FC<{ message: IMessage; sequential: boolean; subscription?

const shouldShowReactionList = message.reactions && Object.keys(message.reactions).length;

const shouldShowBroadcastMetric = broadcast && user.username && !isOwnUserMessage(message, subscription);

const mineUid = useUserId();

return (
Expand Down Expand Up @@ -108,7 +106,7 @@ const MessageContent: FC<{ message: IMessage; sequential: boolean; subscription?

{message.location && <MessageLocation location={message.location} />}

{shouldShowBroadcastMetric && (
{broadcast && !!user.username && !isOwnUserMessage(message, subscription) && (
<BroadcastMetric replyBroadcast={(): void => replyBroadcast(message)} mid={message._id} username={user.username} />
)}

Expand Down

0 comments on commit 6e9d830

Please sign in to comment.