Skip to content

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

Reduce the time we allow message collapsing

Gabe Kangasea99f23c6d18
diff --git a/web/components/chat/ChatContainer/ChatContainer.tsx b/web/components/chat/ChatContainer/ChatContainer.tsx
index dac37f9693..11557ea33c 100644
--- a/web/components/chat/ChatContainer/ChatContainer.tsx
+++ b/web/components/chat/ChatContainer/ChatContainer.tsx
@@ -49,7 +49,7 @@ function shouldCollapseMessages(messages: ChatMessage[], index: number): boolean
return false;
}
- const maxTimestampDelta = 1000 * 60 * 2; // 2 minutes
+ const maxTimestampDelta = 1000 * 60; // 1 minute
const lastTimestamp = new Date(lastMessage?.timestamp).getTime();
const thisTimestamp = new Date(message.timestamp).getTime();
if (thisTimestamp - lastTimestamp > maxTimestampDelta) {