Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
fix(chat): cleanup of moderator flag check
Gabe Kangas88c8f8a1ffd6
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsxindex efce42af96..40a8df8a37 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<ChatContainerProps> = ({collapsedMessageIds.add(message.id);}+ const isAuthorModerator = checkIsModerator(message);+return (<ChatUserMessagemessage={message}@@ -162,7 +163,7 @@ export const ChatContainer: FC<ChatContainerProps> = ({highlightString={usernameToHighlight} // What to highlight in the messagesentBySelf={message.user?.id === chatUserId} // The local user sent this messagesameUserAsLast={collapsed}- isAuthorModerator={message.user?.isModerator}+ isAuthorModerator={isAuthorModerator}isAuthorBot={message.user?.isBot}isAuthorAuthenticated={message.user?.authenticated}key={message.id}