Client now only injects chat buffer once.

This commit is contained in:
rainbow napkin 2025-09-13 11:51:10 -04:00
parent dca788dfc0
commit dd39f76725
2 changed files with 10 additions and 6 deletions

View file

@ -130,12 +130,6 @@ class channel{
//Store queue lock status //Store queue lock status
this.queueLock = data.queueLock; this.queueLock = data.queueLock;
//For each chat held in the chat buffer
for(let chat of data.chatBuffer){
//Display the chat
this.chatBox.displayChat(chat);
}
} }
/** /**

View file

@ -393,6 +393,16 @@ class chatBox{
handleClientInfo(data){ handleClientInfo(data){
this.updateFlairSelect(data.flairList, data.user.flair); this.updateFlairSelect(data.flairList, data.user.flair);
this.updateHighSelect(data.user.highLevel); this.updateHighSelect(data.user.highLevel);
//If the chatbox is empty
if(this.chatBuffer.childElementCount <= 0){
//For each chat held in the chat buffer
for(let chat of data.chatBuffer){
//Display the chat
this.displayChat(chat);
}
}
} }
/** /**