diff options
author | David Gay <david@davidgay.org> | 2021-07-06 20:11:20 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-07-06 20:11:20 -0400 |
commit | 0ac5950f8c50bfcb6ce6cd89c0e80d982513cd15 (patch) | |
tree | 8d71642cb8fa11a62284d3f685bb6d126c32a4a6 /app/javascript/controllers | |
parent | de4cece0f141d883d62614dfe132a24a5e140eda (diff) |
Increase chat message area chat message limit from 100 to 200, and add a chat history page that shows the last 2,000 messages
Diffstat (limited to 'app/javascript/controllers')
-rw-r--r-- | app/javascript/controllers/chat_controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/controllers/chat_controller.js b/app/javascript/controllers/chat_controller.js index 95b61c5..0605b3a 100644 --- a/app/javascript/controllers/chat_controller.js +++ b/app/javascript/controllers/chat_controller.js @@ -18,7 +18,7 @@ export default class extends Controller { load() { this.scrollToBottom(); if (this.outputTarget.innerHTML.trim() === "") { - fetch("/chat_messages") + fetch("/chat_messages/list") .then(response => response.text()) .then(html => { this.outputTarget.innerHTML = html; |