Fix mod menu showing. Closes #1990

This commit is contained in:
Gabe Kangas
2022-08-10 21:41:56 -07:00
parent cf03a37aed
commit a7bbb06ea5
4 changed files with 7 additions and 5 deletions

View File

@@ -87,6 +87,7 @@ export default function ChatContainer(props: Props) {
highlightString={usernameToHighlight} // What to highlight in the message
sentBySelf={message.user?.id === chatUserId} // The local user sent this message
sameUserAsLast={isSameUserAsLast(messages, index)}
isAuthorModerator={(message as ChatMessage).user.scopes.includes('MODERATOR')}
key={message.id}
/>
);