Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Restore the loading state of the app. Closes #2195
Gabe Kangas988e06453a86
diff --git a/web/components/ui/Content/Content.tsx b/web/components/ui/Content/Content.tsxindex 0dccff3955..9208d216e7 100644--- a/web/components/ui/Content/Content.tsx+++ b/web/components/ui/Content/Content.tsx@@ -95,15 +95,19 @@ const MobileContent = ({socialHandles,extraPageContent,messages,- chatDisplayName,- chatUserId,+ currentUser,showChat,}) => {+ if (!currentUser) {+ return null;+ }+ const { id, displayName } = currentUser;+const chatContent = showChat && (<ChatContainermessages={messages}- usernameToHighlight={chatDisplayName}- chatUserId={chatUserId}+ usernameToHighlight={displayName}+ chatUserId={id}isModerator={false}height="40vh"/>@@ -208,11 +212,6 @@ export const Content: FC = () => {window.addEventListener('resize', checkIfMobile);}, []);- if (!currentUser) {- return null;- }-- const { id: currentUserId, displayName } = currentUser;const showChat = !chatDisabled && isChatAvailable && isChatVisible;return (@@ -274,8 +273,7 @@ export const Content: FC = () => {socialHandles={socialHandles}extraPageContent={extraPageContent}messages={messages}- chatDisplayName={displayName}- chatUserId={currentUserId}+ currentUser={currentUser}showChat={showChat}/>) : (diff --git a/web/components/ui/Sidebar/Sidebar.tsx b/web/components/ui/Sidebar/Sidebar.tsxindex 2d2a011c16..b255b3fc27 100644--- a/web/components/ui/Sidebar/Sidebar.tsx+++ b/web/components/ui/Sidebar/Sidebar.tsx@@ -11,6 +11,10 @@ export const Sidebar: FC = () => {const currentUser = useRecoilValue(currentUserAtom);const messages = useRecoilValue<ChatMessage[]>(visibleChatMessagesSelector);+ if (!currentUser) {+ return null;+ }+const { id, isModerator, displayName } = currentUser;return (<Sider className={styles.root} collapsedWidth={0} width={320}>