()
| 4270 | } |
| 4271 | |
| 4272 | function resetChatThread() { |
| 4273 | state.chatMessages = []; |
| 4274 | $("chatThread").innerHTML = chatIntroHtml(); |
| 4275 | renderChatSources(); |
| 4276 | window.setTimeout(() => { |
| 4277 | $("chatThread").scrollTop = $("chatThread").scrollHeight; |
| 4278 | }, 0); |
| 4279 | } |
| 4280 | |
| 4281 | function formatChatDateLabel(dateValue) { |
| 4282 | const date = String(dateValue || "").slice(0, 10); |
no test coverage detected