Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
feat: add readonly-chat class to readonly embed (#4714)
John Costad155318a19b9
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsxindex 72d23dfa04..8f7cfda980 100644--- a/web/components/chat/ChatContainer/ChatContainer.tsx+++ b/web/components/chat/ChatContainer/ChatContainer.tsx@@ -33,6 +33,7 @@ export type ChatContainerProps = {chatAvailable: boolean;focusInput?: boolean;desktop?: boolean;+ readonly?: boolean;};let resizeWindowCallback: () => void;@@ -84,6 +85,7 @@ export const ChatContainer: FC<ChatContainerProps> = ({chatAvailable: chatEnabled,desktop,focusInput = true,+ readonly = false,}) => {const [showScrollToBottomButton, setShowScrollToBottomButton] = useState(false);const [isAtBottom, setIsAtBottom] = useState(false);@@ -358,7 +360,7 @@ export const ChatContainer: FC<ChatContainerProps> = ({<divaria-live="off"id="chat-container"- className={styles.chatContainer}+ className={`${styles.chatContainer}${readonly ? ' readonly-chat' : ''}`}style={desktop && { width: `${defaultChatWidth}px` }}>{MessagesTable}diff --git a/web/pages/embed/chat/readonly/index.tsx b/web/pages/embed/chat/readonly/index.tsxindex 282b9a8517..3248b86b89 100644--- a/web/pages/embed/chat/readonly/index.tsx+++ b/web/pages/embed/chat/readonly/index.tsx@@ -35,6 +35,7 @@ export default function ReadOnlyChatEmbed() {showInput={false}height="100vh"chatAvailable={isChatAvailable}+ readonly/>)}</ErrorBoundary>