mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-29 09:58:45 +00:00
clear channels too
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user