File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1429,7 +1429,7 @@ class Guild extends SnowFlake {
1429
1429
return ;
1430
1430
}
1431
1431
}
1432
- if ( this . prevchannel && ID !== null ) {
1432
+ if ( this . prevchannel && ID !== null && this . prevchannel . visable ) {
1433
1433
console . log ( this . prevchannel ) ;
1434
1434
this . prevchannel . getHTML ( addstate ) ;
1435
1435
return ;
@@ -1467,6 +1467,12 @@ class Guild extends SnowFlake {
1467
1467
( document . getElementById ( "sideDiv" ) as HTMLElement ) . innerHTML = "" ;
1468
1468
}
1469
1469
noChannel ( addstate : boolean ) {
1470
+ for ( const c of this . channels ) {
1471
+ if ( c . visable ) {
1472
+ this . loadChannel ( c . id , addstate ) ;
1473
+ return ;
1474
+ }
1475
+ }
1470
1476
if ( addstate ) {
1471
1477
history . pushState ( [ this . id , undefined ] , "" , "/channels/" + this . id ) ;
1472
1478
}
You can’t perform that action at this time.
0 commit comments