Client now only injects chat buffer once.
This commit is contained in:
parent
dca788dfc0
commit
dd39f76725
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue