()
| 127 | let pendingTs = 0 |
| 128 | |
| 129 | const flush = () => { |
| 130 | if (pendingContents.length === 0) return |
| 131 | const combined = pendingContents.join('; ') |
| 132 | const maxLen = pendingContents.length > 1 ? MAX_MERGED_CONTENT_LENGTH : MAX_CONTENT_LENGTH |
| 133 | lines.push(`${formatTimestamp(pendingTs)} ${prevSender}: ${truncate(combined, maxLen)}`) |
| 134 | } |
| 135 | |
| 136 | for (const msg of valid) { |
| 137 | const content = msg.content!.trim() |
no test coverage detected