Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix: Fix to show color when user join the chat (#4706)

Camila Garciab8cef7eef446
diff --git a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx
index 0125d95da9..99bef49827 100644
--- a/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx
+++ b/web/components/chat/ChatJoinMessage/ChatJoinMessage.tsx
@@ -23,7 +23,7 @@ export const ChatJoinMessage: FC<ChatJoinMessageProps> = ({
userColor,
displayName,
}) => {
- const color = `var(--theme-color-users-${userColor})`;
+ const color = userColor !== undefined ? `var(--theme-color-users-${userColor})` : 'inherit';
return (
<div className={styles.root}>
@@ -37,7 +37,9 @@ export const ChatJoinMessage: FC<ChatJoinMessageProps> = ({
</span>
)}
<span className={styles.joinMessage}>
- <span className={styles.user}>{displayName}</span>
+ <span className={styles.user} style={{ color }}>
+ {displayName}
+ </span>
<span> </span>
<Translation
translationKey={Localization.Frontend.Chat.userJoined}