Browse Source

Reduce the time we allow message collapsing

pull/2723/head
Gabe Kangas 2 years ago
parent
commit
8f2a345594
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 2
      web/components/chat/ChatContainer/ChatContainer.tsx

2
web/components/chat/ChatContainer/ChatContainer.tsx

@ -49,7 +49,7 @@ function shouldCollapseMessages(messages: ChatMessage[], index: number): boolean @@ -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) {

Loading…
Cancel
Save