Various bug fixes

This commit is contained in:
MathMan05 2024-05-28 15:19:13 -05:00
parent cbf657afeb
commit 3b55b28260
7 changed files with 97 additions and 16 deletions

View file

@ -34,7 +34,7 @@ class localuser{
this.typing=[];
}
resolveGuildidFromChannelID(ID){
const resolve=this.guilds.find(guild => guild.channelids[ID])
let resolve=this.guilds.find(guild => guild.channelids[ID])
resolve??=undefined;
return resolve;
}
@ -98,11 +98,17 @@ class localuser{
this.all.loadGuild();
this.all.loadChannel();
}
const sentdms=document.createElement("div");
sentdms.classList.add("sentdms");
serverlist.append(sentdms);
sentdms.id="sentdms";
const br=document.createElement("hr")
br.classList.add("lightbr")
br.classList.add("lightbr");
serverlist.appendChild(br)
for(const thing of this.guilds){
if(thing instanceof dirrect){
thing.unreaddms();
continue;
}
const divy=document.createElement("div");
@ -151,7 +157,7 @@ class localuser{
console.log(this.guildhtml)
for(const thing of this.guilds){
if(thing.id==="@me"){continue;}
thing.unreads(this.guildhtml[thing.id])
thing.unreads(this.guildhtml[thing.id]);
}
}
typeingStart(typing){