Skip to content

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

Fix issue when trying to collapse non-user message

Gabe Kangasb8182d07155a
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx
index 82b8dbe242..e11a17dde4 100644
--- a/web/components/chat/ChatContainer/ChatContainer.tsx
+++ b/web/components/chat/ChatContainer/ChatContainer.tsx
@@ -32,6 +32,10 @@ function shouldCollapseMessages(messages: ChatMessage[], index: number): boolean
}
const message = messages[index];
+ if (!message || !message.user) {
+ return false;
+ }
+
const {
user: { id },
} = message;