get rid of eccesive loggin

This commit is contained in:
MathMan05 2024-09-03 11:06:30 -05:00
parent e3086efb82
commit 66a13c3407
10 changed files with 0 additions and 34 deletions

View file

@ -49,12 +49,10 @@ class Channel extends SnowFlake{
messages:Map<string,Message>=new Map();
static setupcontextmenu(){
this.contextmenu.addbutton("Copy channel id",function(this:Channel){
console.log(this);
navigator.clipboard.writeText(this.id);
});
this.contextmenu.addbutton("Mark as read",function(this:Channel){
console.log(this);
this.readbottom();
});
@ -63,7 +61,6 @@ class Channel extends SnowFlake{
});
this.contextmenu.addbutton("Delete channel",function(this:Channel){
console.log(this);
this.deleteChannel();
},null,function(){
return this.isAdmin();
@ -181,7 +178,6 @@ class Channel extends SnowFlake{
await this.grabAfter(id);
return this.idToNext.get(id);
}else{
console.log("at bottom");
}
}
}),
@ -708,7 +704,6 @@ class Channel extends SnowFlake{
await this.buildmessages();
//loading.classList.remove("loading");
console.log(this);
(document.getElementById("typebox") as HTMLDivElement).contentEditable=""+this.canMessage;
}
static regenLoadingMessages(){

View file

@ -29,17 +29,14 @@ class Guild extends SnowFlake{
static contextmenu=new Contextmenu<Guild,undefined>("guild menu");
static setupcontextmenu(){
Guild.contextmenu.addbutton("Copy Guild id",function(this:Guild){
console.log(this);
navigator.clipboard.writeText(this.id);
});
Guild.contextmenu.addbutton("Mark as read",function(this:Guild){
console.log(this);
this.markAsRead();
});
Guild.contextmenu.addbutton("Notifications",function(this:Guild){
console.log(this);
this.setnotifcation();
});
@ -56,7 +53,6 @@ class Guild extends SnowFlake{
});
Guild.contextmenu.addbutton("Create invite",function(this:Guild){
console.log(this);
},null,_=>true,_=>false);
Guild.contextmenu.addbutton("Settings[temp]",function(this:Guild){
this.generateSettings();
@ -476,7 +472,6 @@ class Guild extends SnowFlake{
1
],
["textbox","Name of channel","",function(this:HTMLInputElement){
console.log(this);
name=this.value;
}],
["button","","submit",function(){
@ -493,7 +488,6 @@ class Guild extends SnowFlake{
const channelselect=new Dialog(
["vdiv",
["textbox","Name of category","",function(this:HTMLInputElement){
console.log(this);
name=this.value;
}],
["button","","submit",()=>{

View file

@ -250,7 +250,6 @@ class InfiniteScroller{
element=thing[0];
}
}
console.log(id,element,this.HTMLElements.length,":3");
if(element){
if(flash){
element.scrollIntoView({

View file

@ -542,7 +542,6 @@ class Localuser{
channels.innerHTML="";
const html=guild.getHTML();
channels.appendChild(html);
console.log("found :3",html);
return guild;
}
buildservers():void{
@ -1379,7 +1378,6 @@ class Localuser{
this.presences.set(thing.user.id,thing);
}
}
console.log(chunk);
chunk.members??=[];
const arr=this.noncebuild.get(chunk.nonce);
if(!arr)return;
@ -1389,7 +1387,6 @@ class Localuser{
}
arr[2].push(chunk.chunk_index);
if(arr[2].length===chunk.chunk_count){
console.log("got through");
this.noncebuild.delete(chunk.nonce);
const func=this.noncemap.get(chunk.nonce);
if(!func)return;
@ -1457,7 +1454,6 @@ class Localuser{
}
func(undefined);
value.delete(thing);
console.log("failed");
}
}
this.fetchingmembers.delete(guildid);

View file

@ -117,7 +117,6 @@ class Specialuser{
}
}
set pfpsrc(e){
console.log("this ran fr");
this.json.pfpsrc=e;
this.updateLocal();
}