fixed message deleting bug

This commit is contained in:
MathMan05 2024-09-14 17:32:52 -05:00
parent 4b0bf6bb59
commit aaab591bee
4 changed files with 47 additions and 14 deletions

View file

@ -174,6 +174,7 @@ class Channel extends SnowFlake{
}
}else{
if(this.idToNext.has(id)){
if(!this.messages.has(this.idToNext.get(id))){console.error("how did we get here?")}
return this.idToNext.get(id);
}else if(this.lastmessage?.id!==id){
await this.grabAfter(id);