remember channels you were in last

This commit is contained in:
MathMan05 2024-09-06 11:49:10 -05:00
parent b5e0e6df8b
commit 7915032462
6 changed files with 10 additions and 5 deletions

View file

@ -676,6 +676,8 @@ class Channel extends SnowFlake {
this.myhtml.classList.add("viewChannel");
}
this.guild.prevchannel = this;
this.guild.perminfo.prevchannel = this.id;
this.localuser.userinfo.updateLocal();
this.localuser.channelfocus = this;
const prom = this.infinite.delete();
history.pushState(null, "", "/channels/" + this.guild_id + "/" + this.id);