Get rid of exesive logging

This commit is contained in:
MathMan05
2024-08-20 16:20:12 -05:00
parent 3952698d31
commit 0a1b574f2a
12 changed files with 0 additions and 32 deletions

View File

@@ -265,7 +265,6 @@ class Channel {
if (!this.hasPermission("VIEW_CHANNEL")) {
return false;
}
console.log(this.lastmessageid, !!this.lastmessageid, ":3");
return this.lastmessageid !== this.lastreadmessageid && this.type !== 4 && !!this.lastmessageid;
}
hasPermission(name, member = this.guild.member) {
@@ -895,7 +894,6 @@ class Channel {
return id;
}
findClosest(snowflake) {
console.log("in here :3");
if (!this.lastmessage)
return;
let flake = this.lastmessage.snowflake;
@@ -903,7 +901,6 @@ class Channel {
return;
}
;
console.log("in here :3");
const time = snowflake.getUnixTime();
let flaketime = flake.getUnixTime();
while (flake && time < flaketime) {
@@ -1018,7 +1015,6 @@ class Channel {
}
const messagez = new Message(messagep.d, this);
this.lastmessage = messagez;
console.log(this.lastmessageid, messagez.snowflake, ":3");
if (this.lastmessageid) {
this.idToNext.set(this.lastmessageid, messagez.snowflake);
this.idToPrev.set(messagez.snowflake, this.lastmessageid);

View File

@@ -111,10 +111,8 @@ class Emoji {
title.textContent = Emoji.emojis[0].name;
title.classList.add("emojiTitle");
menu.append(title);
console.log("menu :3");
const selection = document.createElement("div");
selection.classList.add("flexltr", "dontshrink", "emojirow");
console.log("menu :3");
const body = document.createElement("div");
body.classList.add("emojiBody");
let isFirst = true;
@@ -196,7 +194,6 @@ class Emoji {
}
menu.append(selection);
menu.append(body);
console.log("menu :3");
return promise;
}
}

View File

@@ -121,7 +121,6 @@ class Guild {
this.headchannels = [];
for (const thing of this.channels) {
const parent = thing.resolveparent(this);
console.log(parent, ":3");
if (!parent) {
this.headchannels.push(thing);
}
@@ -359,13 +358,11 @@ class Guild {
}
}
getHTML() {
console.log("found :3", this.headchannels);
//this.printServers();
this.sortchannels();
this.printServers();
const build = document.createElement("div");
for (const thing of this.headchannels) {
console.log("found :3");
build.appendChild(thing.createguildHTML(this.isAdmin()));
}
return build;

View File

@@ -57,7 +57,6 @@ class Message {
});
Message.contextmenu.addsubmenu("Add reaction", function (e) {
Emoji.emojiPicker(e.x, e.y, this.localuser).then(_ => {
console.log(_, ":3");
this.reactionToggle(_);
});
});
@@ -287,7 +286,6 @@ class Message {
author.bind(username);
});
reply.onclick = _ => {
console.log("this got clicked :3");
this.channel.infinite.focus(this.message_reference.message_id);
};
div.appendChild(replyline);
@@ -411,7 +409,6 @@ class Message {
const func = this.channel.infinite.snapBottom();
reactdiv.innerHTML = "";
for (const thing of this.reactions) {
console.log(thing, ":3");
const reaction = document.createElement("div");
reaction.classList.add("reaction");
if (thing.me) {

View File

@@ -199,7 +199,6 @@ class ButtonInput {
return div;
}
onClickEvent(ev) {
console.log("here :3");
this.onClick();
}
watchForChange() { }

View File

@@ -128,7 +128,6 @@ class User {
}
resolving = false;
async getBadge(id) {
console.log(id, ":3");
if (this.localuser.badges.has(id)) {
return this.localuser.badges.get(id);
}
@@ -271,7 +270,6 @@ class User {
const badgediv = document.createElement("div");
badgediv.classList.add("badges");
(async () => {
console.log(this.badge_ids, ":3");
if (!this.badge_ids)
return;
for (const id of this.badge_ids) {