Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Only show moderator notification once. Closes #2578
Gabe Kangas8c28400c766c
diff --git a/web/components/stores/ClientConfigStore.tsx b/web/components/stores/ClientConfigStore.tsxindex d073352bf8..e4cb192c3d 100644--- a/web/components/stores/ClientConfigStore.tsx+++ b/web/components/stores/ClientConfigStore.tsx@@ -33,6 +33,7 @@ const SERVER_STATUS_POLL_DURATION = 5000;const ACCESS_TOKEN_KEY = 'accessToken';let serverStatusRefreshPoll: ReturnType<typeof setInterval>;+let hasBeenModeratorNotified = false;// Server status is what gets updated such as viewer count, durations,// stream title, online/offline state, etc.@@ -284,7 +285,10 @@ export const ClientConfigStore: FC = () => {setChatAuthenticated,setCurrentUser,);- setChatMessages(currentState => [...currentState, message as ChatEvent]);+ if (!hasBeenModeratorNotified) {+ setChatMessages(currentState => [...currentState, message as ChatEvent]);+ hasBeenModeratorNotified = true;+ }break;case MessageType.CHAT:setChatMessages(currentState => [...currentState, message as ChatEvent]);