Removed some dead code

This commit is contained in:
BordedDev 2025-06-01 20:57:28 +02:00
parent 157493b0f4
commit deaa7716a2
No known key found for this signature in database
GPG Key ID: C5F495EAE56673BF

View File

@ -16,9 +16,6 @@ class ChatInputComponent extends HTMLElement {
textarea = null
_value = ""
lastUpdateEvent = null
previousValue = ""
lastChange = null
changed = false
expiryTimer = null;
constructor() {
@ -26,9 +23,6 @@ class ChatInputComponent extends HTMLElement {
this.lastUpdateEvent = new Date();
this.textarea = document.createElement("textarea");
this.value = this.getAttribute("value") || "";
this.previousValue = this.value;
this.lastChange = new Date();
this.changed = false;
}
get value() {
@ -194,7 +188,6 @@ class ChatInputComponent extends HTMLElement {
if (autoCompletionHandler) {
autoCompletionHandler();
this.value = "";
this.previousValue = "";
e.target.value = "";
return;
@ -273,7 +266,6 @@ class ChatInputComponent extends HTMLElement {
app.rpc.finalizeMessage(this.messageUid)
}
this.value = "";
this.previousValue = "";
this.messageUid = null;
}