fixed bug with channel

This commit is contained in:
MathMan05 2024-07-29 15:58:30 -05:00
parent da6e8308c6
commit 121de3d9b2
2 changed files with 4 additions and 0 deletions

View file

@ -586,6 +586,7 @@ class Channel {
this.children = build;
}
async grabAfter(id) {
console.log(id, this.lastmessage.id);
if (id === this.lastmessage.id) {
return;
}
@ -799,6 +800,7 @@ class Channel {
return;
}
const messagez = new Message(messagep.d, this);
this.lastmessage = messagez;
console.log(this.lastmessageid, messagez.snowflake, ":3");
this.idToNext.set(this.lastmessageid, messagez.snowflake);
this.idToPrev.set(messagez.snowflake, this.lastmessageid);