Fixed loading channel bugs
This commit is contained in:
parent
e49360fba1
commit
5d84518b50
7 changed files with 20 additions and 70 deletions
|
@ -453,7 +453,9 @@ class Channel{
|
|||
return new Message(json[0],this);
|
||||
}
|
||||
}
|
||||
static genid:number=0;
|
||||
async getHTML(){
|
||||
const id=++Channel.genid;
|
||||
if(this.guild!==this.localuser.lookingguild){
|
||||
this.guild.loadGuild();
|
||||
}
|
||||
|
@ -466,6 +468,9 @@ class Channel{
|
|||
const prom=Message.wipeChanel();
|
||||
await this.putmessages();
|
||||
await prom;
|
||||
if(id!==Channel.genid){
|
||||
return;
|
||||
}
|
||||
this.makereplybox();
|
||||
this.buildmessages();
|
||||
history.pushState(null, null,"/channels/"+this.guild_id+"/"+this.id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue