fix weird code

This commit is contained in:
MathMan05 2024-08-14 18:05:10 -05:00
parent b43c9e7f4f
commit 4aa32deb93
2 changed files with 2 additions and 22 deletions

View file

@ -614,17 +614,7 @@ class Localuser{
}else{
name=memb.user.username;
}
let already=false;
for(const thing of this.typing){
if(thing[0]===name){
thing[1]=new Date().getTime();
already=true;
break;
}
}
if(!already){
this.typing.set(memb,new Date().getTime());
}
this.typing.set(memb,new Date().getTime());
setTimeout(this.rendertyping.bind(this),10000);
this.rendertyping();
}