fixed DM firstload not working
This commit is contained in:
parent
c23f6a94a8
commit
48aec02fff
1 changed files with 3 additions and 2 deletions
|
@ -38,6 +38,7 @@ class Direct extends Guild{
|
||||||
const temp = new Group(thing, this);
|
const temp = new Group(thing, this);
|
||||||
this.channels.push(temp);
|
this.channels.push(temp);
|
||||||
this.channelids[temp.id] = temp;
|
this.channelids[temp.id] = temp;
|
||||||
|
this.localuser.channelids.set(temp.id, temp);
|
||||||
}
|
}
|
||||||
this.headchannels = this.channels;
|
this.headchannels = this.channels;
|
||||||
}
|
}
|
||||||
|
@ -184,6 +185,7 @@ class Group extends Channel{
|
||||||
|
|
||||||
const loading = document.getElementById("loadingdiv") as HTMLDivElement;
|
const loading = document.getElementById("loadingdiv") as HTMLDivElement;
|
||||||
Channel.regenLoadingMessages();
|
Channel.regenLoadingMessages();
|
||||||
|
|
||||||
loading.classList.add("loading");
|
loading.classList.add("loading");
|
||||||
this.rendertyping();
|
this.rendertyping();
|
||||||
await this.putmessages();
|
await this.putmessages();
|
||||||
|
@ -193,8 +195,7 @@ class Group extends Channel{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.buildmessages();
|
this.buildmessages();
|
||||||
(document.getElementById("typebox") as HTMLDivElement).contentEditable =
|
(document.getElementById("typebox") as HTMLDivElement).contentEditable ="" + true;
|
||||||
"" + true;
|
|
||||||
}
|
}
|
||||||
messageCreate(messagep: { d: messagejson }){
|
messageCreate(messagep: { d: messagejson }){
|
||||||
const messagez = new Message(messagep.d, this);
|
const messagez = new Message(messagep.d, this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue