From 8e89e9929bd6a532a13bcb3fccf3944b583d3021 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 28 May 2024 10:58:50 -0500 Subject: [PATCH] Fixed a Bug causing client to be unable to load --- webpage/channel.js | 1 - webpage/localuser.js | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/webpage/channel.js b/webpage/channel.js index ce05602..033376f 100644 --- a/webpage/channel.js +++ b/webpage/channel.js @@ -185,7 +185,6 @@ class channel{ return null; } readbottom(){ - console.log(this) if(!this.hasunreads){ return; } diff --git a/webpage/localuser.js b/webpage/localuser.js index 67098a6..0c61aea 100644 --- a/webpage/localuser.js +++ b/webpage/localuser.js @@ -30,7 +30,10 @@ class localuser{ this.typing=[]; } resolveGuildidFromChannelID(ID){ - return this.guilds.find(guild => guild.channelids[ID]); + const resolve=this.guilds.find(guild => guild.channelids[ID]) + resolve??={}; + console.error("Failed to resolve "+ID); + return resolve; } updateChannel(JSON){ this.guildids[JSON.guild_id].updateChannel(JSON);