From a7f84380c45e38d2bf87f0faab2b8bcc001281c3 Mon Sep 17 00:00:00 2001 From: Mitchdev Date: Sun, 17 Nov 2024 23:10:07 +1300 Subject: [PATCH] rename events param to messages --- assets/chat/js/chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/chat/js/chat.js b/assets/chat/js/chat.js index 8cd84c85..fa6b440a 100644 --- a/assets/chat/js/chat.js +++ b/assets/chat/js/chat.js @@ -1110,10 +1110,10 @@ class Chat { } } - onHISTORY(events) { - if (events && events.length > 0) { + onHISTORY(messages) { + if (messages && messages.length > 0) { this.backlogloading = true; - events.forEach((data) => this.source.parseAndDispatch({ data })); + messages.forEach((data) => this.source.parseAndDispatch({ data })); this.backlogloading = false; this.mainwindow.update(true); }