Reduce the time we allow message collapsing

This commit is contained in:
Gabe Kangas
2023-02-20 09:39:49 -08:00
parent 070a9fa675
commit 8f2a345594

View File

@@ -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) {