Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Show moderator message mid-chat session. Closes #2762

Gabe Kangas325bc8d12613
diff --git a/web/components/stores/ClientConfigStore.tsx b/web/components/stores/ClientConfigStore.tsx
index b86fe0f54c..fd3bc5fa00 100644
--- a/web/components/stores/ClientConfigStore.tsx
+++ b/web/components/stores/ClientConfigStore.tsx
@@ -292,7 +292,10 @@ export const ClientConfigStore: FC = () => {
setChatAuthenticated,
setCurrentUser,
);
- if (!hasBeenModeratorNotified) {
+ if (
+ !hasBeenModeratorNotified &&
+ (message as ChatEvent).user?.scopes.includes('MODERATOR')
+ ) {
setChatMessages(currentState => [...currentState, message as ChatEvent]);
hasBeenModeratorNotified = true;
}