diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx index efce42af9..40a8df8a3 100644 --- a/web/components/chat/ChatContainer/ChatContainer.tsx +++ b/web/components/chat/ChatContainer/ChatContainer.tsx @@ -82,7 +82,6 @@ function checkIsModerator(message: ChatMessage | ConnectedClientInfoEvent) { const { user } = message; const u = new User(user); - return u.isModerator; } @@ -155,6 +154,8 @@ export const ChatContainer: FC = ({ collapsedMessageIds.add(message.id); } + const isAuthorModerator = checkIsModerator(message); + return ( = ({ highlightString={usernameToHighlight} // What to highlight in the message sentBySelf={message.user?.id === chatUserId} // The local user sent this message sameUserAsLast={collapsed} - isAuthorModerator={message.user?.isModerator} + isAuthorModerator={isAuthorModerator} isAuthorBot={message.user?.isBot} isAuthorAuthenticated={message.user?.authenticated} key={message.id}