add history state navigation

This commit is contained in:
MathMan05 2024-11-25 15:29:01 -06:00
parent 04f634a708
commit 906f4a51d6
5 changed files with 17 additions and 11 deletions

View file

@ -726,12 +726,12 @@ class Localuser{
}
}
gotoid: string | undefined;
async goToChannel(id: string){
async goToChannel(id: string,addstate=true){
const channel = this.channelids.get(id);
if(channel){
const guild = channel.guild;
guild.loadGuild();
guild.loadChannel(id);
guild.loadChannel(id,addstate);
}else{
this.gotoid = id;
}