Skip to content

Commit

Permalink
rename events param to messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchdev committed Nov 17, 2024
1 parent 191cc9e commit a7f8438
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a7f8438

Please sign in to comment.