some fixes
This commit is contained in:
parent
5acbde2a64
commit
49632b3bab
1 changed files with 7 additions and 1 deletions
|
@ -1429,7 +1429,7 @@ class Guild extends SnowFlake {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (this.prevchannel && ID !== null) {
|
||||
if (this.prevchannel && ID !== null && this.prevchannel.visable) {
|
||||
console.log(this.prevchannel);
|
||||
this.prevchannel.getHTML(addstate);
|
||||
return;
|
||||
|
@ -1467,6 +1467,12 @@ class Guild extends SnowFlake {
|
|||
(document.getElementById("sideDiv") as HTMLElement).innerHTML = "";
|
||||
}
|
||||
noChannel(addstate: boolean) {
|
||||
for (const c of this.channels) {
|
||||
if (c.visable) {
|
||||
this.loadChannel(c.id, addstate);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (addstate) {
|
||||
history.pushState([this.id, undefined], "", "/channels/" + this.id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue