From 3802b89ac05abf3c9b6d5e9934998c2e98230567 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Fri, 26 Jun 2026 22:34:54 -0500 Subject: [PATCH] clear channels too --- src/webpage/localuser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 58861bb..5294848 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -371,6 +371,7 @@ class Localuser { document.body.style.setProperty("--view-rest", I18n.message.viewrest()); this.initialized = true; this.guilds.clear(); + this.channels.clear(); this.user = new User(ready.d.user, this); this.user.setstatus(sessionStorage.getItem("status") || "online"); this.resume_gateway_url = ready.d.resume_gateway_url; @@ -468,6 +469,7 @@ class Localuser { this.initialized = false; this.outoffocus(); this.guilds.clear(); + this.channels.clear(); if (this.ws) { this.ws.close(4040); }