From 6e9d830562a904945ce8f5132c2ce380707e7687 Mon Sep 17 00:00:00 2001 From: Filipe Marins Date: Wed, 13 Apr 2022 16:24:42 -0300 Subject: [PATCH] refactor: remove const --- .../views/room/MessageList/components/MessageContent.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx b/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx index 320cb870004e..045331059996 100644 --- a/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx +++ b/apps/meteor/client/views/room/MessageList/components/MessageContent.tsx @@ -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 ( @@ -108,7 +106,7 @@ const MessageContent: FC<{ message: IMessage; sequential: boolean; subscription? {message.location && } - {shouldShowBroadcastMetric && ( + {broadcast && !!user.username && !isOwnUserMessage(message, subscription) && ( replyBroadcast(message)} mid={message._id} username={user.username} /> )}