Fixed loading channel bugs
This commit is contained in:
parent
e49360fba1
commit
5d84518b50
7 changed files with 20 additions and 70 deletions
|
@ -98,6 +98,7 @@ class Group extends Channel {
|
|||
return div;
|
||||
}
|
||||
async getHTML() {
|
||||
const id = ++Channel.genid;
|
||||
if (this.guild !== this.localuser.lookingguild) {
|
||||
this.guild.loadGuild();
|
||||
}
|
||||
|
@ -106,6 +107,9 @@ class Group extends Channel {
|
|||
this.localuser.channelfocus = this;
|
||||
await this.putmessages();
|
||||
await prom;
|
||||
if (id !== Channel.genid) {
|
||||
return;
|
||||
}
|
||||
this.buildmessages();
|
||||
history.pushState(null, null, "/channels/" + this.guild_id + "/" + this.id);
|
||||
document.getElementById("channelname").textContent = "@" + this.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue