Skip to content

Commit 49632b3

Browse files
committed
some fixes
1 parent 5acbde2 commit 49632b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/webpage/guild.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,7 @@ class Guild extends SnowFlake {
14291429
return;
14301430
}
14311431
}
1432-
if (this.prevchannel && ID !== null) {
1432+
if (this.prevchannel && ID !== null && this.prevchannel.visable) {
14331433
console.log(this.prevchannel);
14341434
this.prevchannel.getHTML(addstate);
14351435
return;
@@ -1467,6 +1467,12 @@ class Guild extends SnowFlake {
14671467
(document.getElementById("sideDiv") as HTMLElement).innerHTML = "";
14681468
}
14691469
noChannel(addstate: boolean) {
1470+
for (const c of this.channels) {
1471+
if (c.visable) {
1472+
this.loadChannel(c.id, addstate);
1473+
return;
1474+
}
1475+
}
14701476
if (addstate) {
14711477
history.pushState([this.id, undefined], "", "/channels/" + this.id);
14721478
}

0 commit comments

Comments
 (0)