Skip to content

Commit

Permalink
Merge branch 'develop' into feat/code-highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
abirc8010 authored Jan 5, 2025
2 parents 5a46d5e + 843adf0 commit dae74a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/views/Message/MessageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const MessageHeader = ({
css={styles.userRole}
className={appendClassNames('ec-message-user-role')}
>
admin
Admin
</Box>
)}

Expand All @@ -138,7 +138,7 @@ const MessageHeader = ({
css={styles.userRole}
className={appendClassNames('ec-message-user-role')}
>
{role}
{role.charAt(0).toUpperCase() + role.slice(1)}
</Box>
))}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import LoadingIndicator from './LoadingIndicator';
import NoMessagesIndicator from './NoMessageIndicator';
import FileDisplay from '../../FileMessage/FileMessage';
import useSetExclusiveState from '../../../hooks/useSetExclusiveState';
import { useRCContext } from '../../../context/RCInstance';

export const MessageAggregator = ({
title,
Expand All @@ -33,6 +34,8 @@ export const MessageAggregator = ({
const { theme } = useTheme();
const styles = getMessageAggregatorStyles(theme);
const setExclusiveState = useSetExclusiveState();
const { ECOptions } = useRCContext();
const showRoles = ECOptions?.showRoles;
const messages = useMessageStore((state) => state.messages);
const threadMessages = useMessageStore((state) => state.threadMessages) || [];
const allMessages = useMemo(
Expand Down Expand Up @@ -126,7 +129,7 @@ export const MessageAggregator = ({
type="default"
showAvatar
showToolbox={false}
showRoles={false}
showRoles={showRoles}
isInSidebar
style={{
flex: 1,
Expand Down

0 comments on commit dae74a4

Please sign in to comment.