diff --git a/assets/chat/js/history.js b/assets/chat/js/history.js index 63c9e797..559fad16 100644 --- a/assets/chat/js/history.js +++ b/assets/chat/js/history.js @@ -71,7 +71,7 @@ class ChatInputHistory { this.history.push(message); // limit entries if (this.history.length > this.maxentries) - this.history.slice(-this.maxentries); + this.history.splice(0, this.history.length - this.maxentries); ChatStore.write('chat.history', this.history); } }