Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
try and fix a ts error
gingervitis627fa54db5e8
diff --git a/web/pages/components/message-visiblity-toggle.tsx b/web/pages/components/message-visiblity-toggle.tsxindex 6f99398cf9..c202e8d1e0 100644--- a/web/pages/components/message-visiblity-toggle.tsx+++ b/web/pages/components/message-visiblity-toggle.tsx@@ -5,6 +5,7 @@ import { EyeOutlined, EyeInvisibleOutlined, CheckCircleFilled, ExclamationCircleimport { fetchData, UPDATE_CHAT_MESSGAE_VIZ } from "../../utils/apis";import { MessageType } from '../../types/chat';import { OUTCOME_TIMEOUT } from "../chat";+import { isEmptyObject } from "../../utils/format";interface MessageToggleProps {isVisible: boolean;@@ -14,10 +15,14 @@ interface MessageToggleProps {export default function MessageVisiblityToggle({ isVisible, message, setMessage }: MessageToggleProps) {+ if (!message || isEmptyObject(message)) {+ return null;+ }+let outcomeTimeout = null;const [outcome, setOutcome] = useState(0);- const { id: messageId } = message;+ const { id: messageId } = message || {};const resetOutcome = () => {outcomeTimeout = setTimeout(() => { setOutcome(0)}, OUTCOME_TIMEOUT);