fix bug with dms
This commit is contained in:
@@ -169,7 +169,7 @@ class Group extends Channel{
|
|||||||
|
|
||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
async getHTML(){
|
async getHTML(addstate=true){
|
||||||
const id = ++Channel.genid;
|
const id = ++Channel.genid;
|
||||||
if(this.localuser.channelfocus){
|
if(this.localuser.channelfocus){
|
||||||
this.localuser.channelfocus.infinite.delete();
|
this.localuser.channelfocus.infinite.delete();
|
||||||
@@ -180,7 +180,9 @@ class Group extends Channel{
|
|||||||
this.guild.prevchannel = this;
|
this.guild.prevchannel = this;
|
||||||
this.localuser.channelfocus = this;
|
this.localuser.channelfocus = this;
|
||||||
const prom = this.infinite.delete();
|
const prom = this.infinite.delete();
|
||||||
history.pushState([this.guild_id,this.id], "", "/channels/" + this.guild_id + "/" + this.id);
|
if(addstate){
|
||||||
|
history.pushState([this.guild_id,this.id], "", "/channels/" + this.guild_id + "/" + this.id);
|
||||||
|
}
|
||||||
this.localuser.pageTitle("@" + this.name);
|
this.localuser.pageTitle("@" + this.name);
|
||||||
(document.getElementById("channelTopic") as HTMLElement).setAttribute("hidden","");
|
(document.getElementById("channelTopic") as HTMLElement).setAttribute("hidden","");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user